has_moderated 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ module HasModerated
41
41
  end
42
42
 
43
43
  def photo_tmp_file=(value)
44
- self.photo.store!(File.open(value))
44
+ self.photo = File.open(value)
45
45
  HasModerated::CarrierWave::photo_tmp_delete(value)
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module HasModerated
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
@@ -1242,3 +1242,26 @@ Migrating to CreatePhotoHolders (20111004164509)
1242
1242
   (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1243
1243
   (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1244
1244
   (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
1245
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
1246
+  (0.1ms) select sqlite_version(*)
1247
+  (1.6ms) CREATE TABLE "hook_tests" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "foo" varchar(255), "created_at" datetime, "updated_at" datetime) 
1248
+  (1.4ms) CREATE TABLE "moderations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "moderatable_id" integer, "moderatable_type" varchar(255) NOT NULL, "attr_name" varchar(60) NOT NULL, "attr_value" text NOT NULL, "created_at" datetime, "updated_at" datetime)
1249
+  (1.4ms) CREATE TABLE "photo_holders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime) 
1250
+  (1.4ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "created_at" datetime, "updated_at" datetime, "photo_holder_id" integer)
1251
+  (1.5ms) CREATE TABLE "subtasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime, "task_all_id" integer) 
1252
+  (1.3ms) CREATE TABLE "task_alls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "value" varchar(255), "created_at" datetime, "updated_at" datetime)
1253
+  (1.4ms) CREATE TABLE "task_photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photo" varchar(255), "task_id" integer, "created_at" datetime, "updated_at" datetime) 
1254
+  (1.7ms) CREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "desc" varchar(255), "created_at" datetime, "updated_at" datetime)
1255
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
1256
+  (0.0ms) PRAGMA index_list("schema_migrations")
1257
+  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1258
+  (0.1ms) SELECT version FROM "schema_migrations"
1259
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004164509')
1260
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013205')
1261
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013228')
1262
+  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20110901013618')
1263
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025410')
1264
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20110908025606')
1265
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003205633')
1266
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20111003234101')
1267
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20111004153147')
@@ -22742,3 +22742,429 @@ Migrating to CreatePhotoHolders (20111004164509)
22742
22742
   (0.1ms) SELECT COUNT(*) FROM "subtasks"
22743
22743
  Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
22744
22744
  Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
22745
+  (0.1ms) SAVEPOINT active_record_1
22746
+ SQL (4.1ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", " --- \n:main_model: \n created_at: \n title: hello\n updated_at: \n id: \n foo: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:00 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "HookTest"], ["updated_at", Tue, 04 Oct 2011 21:20:00 UTC +00:00]]
22747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22748
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22749
+  (0.0ms) SAVEPOINT active_record_1
22750
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", " --- \n:main_model: \n created_at: \n title: hello\n updated_at: \n id: \n foo: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "HookTest"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22752
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22753
+  (0.0ms) SAVEPOINT active_record_1
22754
+ SQL (0.3ms) INSERT INTO "hook_tests" ("created_at", "foo", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["foo", nil], ["title", "hello"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22755
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22756
+  (0.0ms) SAVEPOINT active_record_1
22757
+ SQL (0.2ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22759
+ HookTest Load (0.1ms) SELECT "hook_tests".* FROM "hook_tests" LIMIT 1
22760
+  (0.0ms) SAVEPOINT active_record_1
22761
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", " --- Jojo\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "HookTest"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22763
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22764
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22765
+ HookTest Load (0.1ms) SELECT "hook_tests".* FROM "hook_tests" WHERE "hook_tests"."id" = 1 LIMIT 1
22766
+  (0.0ms) SAVEPOINT active_record_1
22767
+  (0.1ms) UPDATE "hook_tests" SET "updated_at" = '2011-10-04 21:20:01.023370', "title" = 'Jojo' WHERE "hook_tests"."id" = 1
22768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22769
+  (0.0ms) SAVEPOINT active_record_1
22770
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
22771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22772
+ HookTest Load (0.1ms) SELECT "hook_tests".* FROM "hook_tests" LIMIT 1
22773
+  (0.0ms) SAVEPOINT active_record_1
22774
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hello\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22776
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22777
+  (0.1ms) SAVEPOINT active_record_1
22778
+ SQL (0.7ms) INSERT INTO "photo_holders" ("created_at", "title", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["title", nil], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22779
+ SQL (0.2ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n photo: \n created_at: \n updated_at: \n id: \n photo_holder_id: 1\n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-2320-5512-1280/logo_arnes.gif\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22781
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
22782
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22783
+  (0.1ms) SAVEPOINT active_record_1
22784
+ SQL (0.4ms) INSERT INTO "photos" ("created_at", "photo", "photo_holder_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["photo", "logo_arnes.gif"], ["photo_holder_id", 1], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22785
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22786
+  (0.0ms) SAVEPOINT active_record_1
22787
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22789
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
22790
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22791
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22792
+  (0.1ms) SAVEPOINT active_record_1
22793
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n photo: \n created_at: \n updated_at: \n id: \n photo_holder_id: \n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-2320-5512-8135/logo_arnes.gif\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22795
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
22796
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22797
+  (0.1ms) SAVEPOINT active_record_1
22798
+ SQL (0.3ms) INSERT INTO "photos" ("created_at", "photo", "photo_holder_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["photo", "logo_arnes.gif"], ["photo_holder_id", nil], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22800
+  (0.0ms) SAVEPOINT active_record_1
22801
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22803
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
22804
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22805
+  (0.1ms) SAVEPOINT active_record_1
22806
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n photo: \n created_at: \n updated_at: \n id: \n photo_holder_id: \n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-2320-5512-2808/logo_arnes.gif\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22808
+  (0.1ms) SELECT COUNT(*) FROM "photos"
22809
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22810
+  (0.0ms) SAVEPOINT active_record_1
22811
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22813
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
22814
+  (0.0ms) SAVEPOINT active_record_1
22815
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22816
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22817
+  (0.1ms) SELECT COUNT(*) FROM "photos" 
22818
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22819
+  (0.0ms) SAVEPOINT active_record_1
22820
+ SQL (0.3ms) INSERT INTO "photos" ("created_at", "photo", "photo_holder_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["photo", nil], ["photo_holder_id", nil], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22822
+  (0.0ms) SAVEPOINT active_record_1
22823
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22825
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22826
+  (0.1ms) SAVEPOINT active_record_1
22827
+ SQL (0.4ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "photo_tmp_file"], ["attr_value", "/Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-2320-5512-2958/logo_arnes.gif"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Photo"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22829
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22830
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
22831
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22832
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = 1 LIMIT 1
22833
+  (0.1ms) SAVEPOINT active_record_1
22834
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 1]]
22835
+  (0.1ms) UPDATE "photos" SET "photo" = 'logo_arnes.gif', "updated_at" = '2011-10-04 21:20:01.768673' WHERE "photos"."id" = 1
22836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22837
+  (0.0ms) SAVEPOINT active_record_1
22838
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
22839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22840
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22841
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22842
+ Photo Load (0.1ms) SELECT "photos".* FROM "photos" LIMIT 1
22843
+  (0.1ms) SAVEPOINT active_record_1
22844
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Task 1\n updated_at: \n id: \n desc: \n:associations: \n :task_photos: \n - photo: \n task_id: \n created_at: \n updated_at: \n id: \n :photo_tmp_file: /Users/apple/rails/has_moderated/test/dummy/public/uploads/tmp/20111004-2320-5512-4559/logo_arnes.gif\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22845
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22846
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
22847
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
22848
+  (0.1ms) SELECT COUNT(*) FROM "task_photos"
22849
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22850
+  (0.1ms) SAVEPOINT active_record_1
22851
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["desc", nil], ["title", "Task 1"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22853
+  (0.1ms) SAVEPOINT active_record_1
22854
+ SQL (0.3ms) INSERT INTO "task_photos" ("created_at", "photo", "task_id", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["photo", "logo_arnes.gif"], ["task_id", 1], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22856
+  (0.0ms) SAVEPOINT active_record_1
22857
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22859
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
22860
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
22861
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
22862
+ TaskPhoto Load (0.1ms) SELECT "task_photos".* FROM "task_photos" WHERE "task_photos"."task_id" = 1 LIMIT 1
22863
+  (0.0ms) SAVEPOINT active_record_1
22864
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22866
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
22867
+  (0.0ms) SELECT COUNT(*) FROM "moderations" 
22868
+  (0.0ms) SAVEPOINT active_record_1
22869
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22871
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22872
+  (0.0ms) SAVEPOINT active_record_1
22873
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22875
+  (0.0ms) SAVEPOINT active_record_1
22876
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22878
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
22879
+  (0.0ms) SELECT COUNT(*) FROM "tasks" 
22880
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22881
+  (0.0ms) SAVEPOINT active_record_1
22882
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22884
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22885
+  (0.1ms) SAVEPOINT active_record_1
22886
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22888
+  (0.0ms) SAVEPOINT active_record_1
22889
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22891
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22892
+  (0.0ms) SAVEPOINT active_record_1
22893
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22895
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22896
+  (0.1ms) SAVEPOINT active_record_1
22897
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22899
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22900
+  (0.0ms) SAVEPOINT active_record_1
22901
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22903
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22904
+  (0.0ms) SAVEPOINT active_record_1
22905
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:01 UTC +00:00]]
22906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22907
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
22908
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22909
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22910
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
22911
+  (0.0ms) SAVEPOINT active_record_1
22912
+  (0.1ms) UPDATE "tasks" SET "updated_at" = '2011-10-04 21:20:01.992964', "title" = 'Hollywood Hills' WHERE "tasks"."id" = 1
22913
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22914
+  (0.0ms) SAVEPOINT active_record_1
22915
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 5]]
22916
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22917
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22918
+  (0.0ms) SELECT COUNT(*) FROM "tasks"
22919
+  (0.0ms) SAVEPOINT active_record_1
22920
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22922
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22923
+  (0.0ms) SAVEPOINT active_record_1
22924
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22926
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
22927
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
22928
+  (0.0ms) SAVEPOINT active_record_1
22929
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22931
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22932
+  (0.0ms) SAVEPOINT active_record_1
22933
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22934
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22935
+  (0.0ms) SAVEPOINT active_record_1
22936
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22937
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22938
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22939
+  (0.0ms) SAVEPOINT active_record_1
22940
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "title"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22942
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22943
+  (0.0ms) SAVEPOINT active_record_1
22944
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
22945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22946
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
22947
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22948
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
22949
+  (0.1ms) SAVEPOINT active_record_1
22950
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - created_at: \n task_id: \n title: Hollywood Hills\n updated_at: \n id: \n task_all_id: \n desc: \n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22952
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
22953
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
22954
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22955
+  (0.0ms) SAVEPOINT active_record_1
22956
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22958
+  (0.0ms) SAVEPOINT active_record_1
22959
+ SQL (0.3ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", 1], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22960
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22961
+  (0.0ms) SAVEPOINT active_record_1
22962
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22964
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
22965
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22966
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
22967
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
22968
+  (0.0ms) SAVEPOINT active_record_1
22969
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: Hollywood Hills\n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22971
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
22972
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22973
+  (0.0ms) SAVEPOINT active_record_1
22974
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", "Hollywood Hills"], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22976
+  (0.0ms) SAVEPOINT active_record_1
22977
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22979
+  (0.1ms) SELECT COUNT(*) FROM "moderations" 
22980
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22981
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22982
+  (0.0ms) SAVEPOINT active_record_1
22983
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22985
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22986
+  (0.0ms) SAVEPOINT active_record_1
22987
+ SQL (0.4ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22989
+  (0.0ms) SAVEPOINT active_record_1
22990
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
22991
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22992
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22993
+  (0.0ms) SAVEPOINT active_record_1
22994
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "desc"], ["attr_value", "--- Hollywood Hills\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
22995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22996
+  (0.1ms) SELECT COUNT(*) FROM "moderations"
22997
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
22998
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
22999
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
23000
+  (0.0ms) SAVEPOINT active_record_1
23001
+  (0.1ms) UPDATE "tasks" SET "desc" = 'Hollywood Hills', "updated_at" = '2011-10-04 21:20:02.157138' WHERE "tasks"."id" = 1
23002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23003
+  (0.0ms) SAVEPOINT active_record_1
23004
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
23005
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23006
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" DESC LIMIT 1
23007
+  (0.0ms) SAVEPOINT active_record_1
23008
+ SQL (0.6ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23010
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
23011
+  (0.0ms) SAVEPOINT active_record_1
23012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23013
+  (0.0ms) SAVEPOINT active_record_1
23014
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hollywood Hills\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - 1\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23016
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
23017
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" LIMIT 1
23018
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" IS NULL LIMIT 1
23019
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23020
+  (0.1ms) SAVEPOINT active_record_1
23021
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23023
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
23024
+  (0.0ms) SAVEPOINT active_record_1
23025
+  (0.2ms) UPDATE "subtasks" SET "updated_at" = '2011-10-04 21:20:02.179420', "task_id" = 1 WHERE "subtasks"."id" = 1
23026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23027
+  (0.0ms) SAVEPOINT active_record_1
23028
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
23029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23030
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" LIMIT 1
23031
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
23032
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23033
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23034
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
23035
+  (0.1ms) SAVEPOINT active_record_1
23036
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n value: \n:associations: \n :subtasks: \n - created_at: \n task_id: \n title: Hollywood Hills\n updated_at: \n id: \n task_all_id: \n desc: \n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "TaskAll"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23037
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23038
+  (0.1ms) SELECT COUNT(*) FROM "task_alls"
23039
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
23040
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23041
+  (0.0ms) SAVEPOINT active_record_1
23042
+ SQL (0.3ms) INSERT INTO "task_alls" ("created_at", "title", "updated_at", "value") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["value", nil]]
23043
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23044
+  (0.0ms) SAVEPOINT active_record_1
23045
+ SQL (0.3ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["task_all_id", 1], ["task_id", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23047
+  (0.0ms) SAVEPOINT active_record_1
23048
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
23049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23050
+  (0.1ms) SELECT COUNT(*) FROM "task_alls"
23051
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" 
23052
+ TaskAll Load (0.1ms) SELECT "task_alls".* FROM "task_alls" LIMIT 1
23053
+ TaskAll Load (0.1ms) SELECT "task_alls".* FROM "task_alls" LIMIT 1
23054
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_all_id" = 1 LIMIT 1
23055
+  (0.0ms) SAVEPOINT active_record_1
23056
+ SQL (0.7ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23058
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
23059
+  (0.0ms) SAVEPOINT active_record_1
23060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23061
+  (0.0ms) SAVEPOINT active_record_1
23062
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Hollywood Hills\n updated_at: \n id: \n desc: \n:associations: \n :subtasks: \n - 1\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23064
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
23065
+ SQL (0.0ms) DELETE FROM "subtasks"
23066
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
23067
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23068
+  (0.0ms) SAVEPOINT active_record_1
23069
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23071
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
23072
+  (0.0ms) SAVEPOINT active_record_1
23073
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
23074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23075
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23076
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23077
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
23078
+  (0.0ms) SAVEPOINT active_record_1
23079
+ SQL (0.7ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23081
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23082
+  (0.1ms) SAVEPOINT active_record_1
23083
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23085
+  (0.0ms) SAVEPOINT active_record_1
23086
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
23087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23088
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
23089
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23090
+  (0.0ms) SAVEPOINT active_record_1
23091
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "destroy"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23093
+  (0.1ms) SELECT COUNT(*) FROM "tasks" 
23094
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23095
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
23096
+  (0.2ms) SAVEPOINT active_record_1
23097
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" WHERE "moderations"."moderatable_id" = 1 AND "moderations"."moderatable_type" = 'Task'
23098
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
23099
+ SQL (0.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = ? [["id", 1]]
23100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23101
+  (0.0ms) SAVEPOINT active_record_1
23102
+ SQL (0.0ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
23103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23104
+  (0.1ms) SELECT COUNT(*) FROM "tasks"
23105
+  (0.0ms) SAVEPOINT active_record_1
23106
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23108
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23109
+  (0.0ms) SAVEPOINT active_record_1
23110
+ SQL (0.3ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23112
+  (0.0ms) SAVEPOINT active_record_1
23113
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
23114
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23115
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23116
+  (0.0ms) SAVEPOINT active_record_1
23117
+ SQL (1.0ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", {:associations=>{:subtasks=>[{"created_at"=>nil, "task_id"=>1, "title"=>"Hollywood Hills", "updated_at"=>nil, "id"=>nil, "task_all_id"=>nil, "desc"=>nil}]}}], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23119
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23120
+  (0.0ms) SAVEPOINT active_record_1
23121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23122
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23123
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
23124
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23125
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
23126
+  (0.1ms) SAVEPOINT active_record_1
23127
+ SQL (0.3ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", 1], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23129
+  (0.0ms) SAVEPOINT active_record_1
23130
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
23131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23132
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23133
+  (0.0ms) SELECT COUNT(*) FROM "subtasks" 
23134
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23135
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
23136
+  (0.0ms) SAVEPOINT active_record_1
23137
+ SQL (0.6ms) INSERT INTO "subtasks" ("created_at", "desc", "task_all_id", "task_id", "title", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["task_all_id", nil], ["task_id", nil], ["title", "Hollywood Hills"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23139
+  (0.0ms) SAVEPOINT active_record_1
23140
+ SQL (0.3ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", "--- \n:main_model: \n created_at: \n title: Bye Bye\n updated_at: \n id: \n desc: \n:associations: {}\n\n"], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", nil], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23141
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23142
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23143
+  (0.1ms) SAVEPOINT active_record_1
23144
+ SQL (0.4ms) INSERT INTO "tasks" ("created_at", "desc", "title", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["desc", nil], ["title", "Bye Bye"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23145
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23146
+  (0.0ms) SAVEPOINT active_record_1
23147
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 1]]
23148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23149
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23150
+  (0.0ms) SAVEPOINT active_record_1
23151
+ SQL (0.6ms) INSERT INTO "moderations" ("attr_name", "attr_value", "created_at", "moderatable_id", "moderatable_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attr_name", "-"], ["attr_value", {:associations=>{:subtasks=>[1]}}], ["created_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00], ["moderatable_id", 1], ["moderatable_type", "Task"], ["updated_at", Tue, 04 Oct 2011 21:20:02 UTC +00:00]]
23152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23153
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23154
+  (0.0ms) SELECT COUNT(*) FROM "subtasks"
23155
+  (0.0ms) SAVEPOINT active_record_1
23156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
23157
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23158
+ Moderation Load (0.1ms) SELECT "moderations".* FROM "moderations" ORDER BY "moderations"."id" DESC LIMIT 1
23159
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = 1 LIMIT 1
23160
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."id" = 1 LIMIT 1
23161
+  (0.0ms) SAVEPOINT active_record_1
23162
+  (0.1ms) UPDATE "subtasks" SET "updated_at" = '2011-10-04 21:20:02.379394', "task_id" = 1 WHERE "subtasks"."id" = 1
23163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23164
+  (0.0ms) SAVEPOINT active_record_1
23165
+ SQL (0.1ms) DELETE FROM "moderations" WHERE "moderations"."id" = ? [["id", 2]]
23166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
23167
+  (0.1ms) SELECT COUNT(*) FROM "subtasks" WHERE "subtasks"."task_id" = 1
23168
+  (0.1ms) SELECT COUNT(*) FROM "subtasks"
23169
+ Task Load (0.1ms) SELECT "tasks".* FROM "tasks" LIMIT 1
23170
+ Subtask Load (0.1ms) SELECT "subtasks".* FROM "subtasks" WHERE "subtasks"."task_id" = 1 LIMIT 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_moderated
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 16
10
- version: 0.0.16
9
+ - 17
10
+ version: 0.0.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jan Berdajs
@@ -119,7 +119,7 @@ files:
119
119
  - test/dummy/public/422.html
120
120
  - test/dummy/public/500.html
121
121
  - test/dummy/public/favicon.ico
122
- - test/dummy/public/uploads/task_photo/photo/logo_arnes.gif
122
+ - test/dummy/public/uploads/task_photo/photo/1/logo_arnes.gif
123
123
  - test/dummy/Rakefile
124
124
  - test/dummy/script/rails
125
125
  - test/dummy/spec/factories/hook_tests.rb
@@ -217,7 +217,7 @@ test_files:
217
217
  - test/dummy/public/422.html
218
218
  - test/dummy/public/500.html
219
219
  - test/dummy/public/favicon.ico
220
- - test/dummy/public/uploads/task_photo/photo/logo_arnes.gif
220
+ - test/dummy/public/uploads/task_photo/photo/1/logo_arnes.gif
221
221
  - test/dummy/Rakefile
222
222
  - test/dummy/script/rails
223
223
  - test/dummy/spec/factories/hook_tests.rb