favourite_object 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +23 -0
  4. data/Rakefile +12 -0
  5. data/app/assets/images/favourite_active.png +0 -0
  6. data/app/assets/images/favourite_default.png +0 -0
  7. data/app/assets/javascripts/favourite_object/favourites.js +33 -0
  8. data/app/assets/stylesheets/favourite_object_stylesheet.css +47 -0
  9. data/app/controllers/favourite_object/base_favourites_controller.rb +90 -0
  10. data/app/controllers/favourite_object/favourites_controller.rb +3 -0
  11. data/app/models/favourite_object/favourite.rb +73 -0
  12. data/app/serializer/favourite_object/favourite_serializer.rb +44 -0
  13. data/app/views/favourite_object/favourites/_favourite_icon.html.erb +25 -0
  14. data/app/views/favourite_object/favourites/index.html.erb +5 -0
  15. data/config/routes.rb +8 -0
  16. data/lib/favourite_object/engine.rb +11 -0
  17. data/lib/favourite_object/version.rb +3 -0
  18. data/lib/favourite_object.rb +18 -0
  19. data/lib/generators/favourite_object/install/USAGE +6 -0
  20. data/lib/generators/favourite_object/install/install_generator.rb +53 -0
  21. data/lib/generators/favourite_object/install/templates/create_favourite_object_favourites.rb +16 -0
  22. data/lib/generators/favourite_object/install/templates/initializer.rb +9 -0
  23. data/lib/generators/favourite_object/template/USAGE +6 -0
  24. data/lib/generators/favourite_object/template/template_generator.rb +16 -0
  25. data/lib/generators/favourite_object/template/templates/message.html.erb.erb +0 -0
  26. data/lib/tasks/favourite_tasks.rake +4 -0
  27. data/lib/tasks/test.rake +7 -0
  28. data/spec/controllers/favourite_object/favourites_controller_spec.rb +68 -0
  29. data/spec/dummy/rails-4.0.2/Gemfile +45 -0
  30. data/spec/dummy/rails-4.0.2/README.rdoc +28 -0
  31. data/spec/dummy/rails-4.0.2/Rakefile +6 -0
  32. data/spec/dummy/rails-4.0.2/app/assets/javascripts/application.js +22 -0
  33. data/spec/dummy/rails-4.0.2/app/assets/stylesheets/application.css +16 -0
  34. data/spec/dummy/rails-4.0.2/app/controllers/application_controller.rb +5 -0
  35. data/spec/dummy/rails-4.0.2/app/helpers/application_helper.rb +2 -0
  36. data/spec/dummy/rails-4.0.2/app/models/arbitrary_object.rb +2 -0
  37. data/spec/dummy/rails-4.0.2/app/models/user.rb +2 -0
  38. data/spec/dummy/rails-4.0.2/app/views/favourite_object/arbitrary_object/message.html.erb +0 -0
  39. data/spec/dummy/rails-4.0.2/app/views/layouts/application.html.erb +14 -0
  40. data/spec/dummy/rails-4.0.2/bin/bundle +3 -0
  41. data/spec/dummy/rails-4.0.2/bin/rails +4 -0
  42. data/spec/dummy/rails-4.0.2/bin/rake +4 -0
  43. data/spec/dummy/rails-4.0.2/config/application.rb +23 -0
  44. data/spec/dummy/rails-4.0.2/config/boot.rb +4 -0
  45. data/spec/dummy/rails-4.0.2/config/database.yml +25 -0
  46. data/spec/dummy/rails-4.0.2/config/environment.rb +5 -0
  47. data/spec/dummy/rails-4.0.2/config/environments/development.rb +29 -0
  48. data/spec/dummy/rails-4.0.2/config/environments/production.rb +80 -0
  49. data/spec/dummy/rails-4.0.2/config/environments/test.rb +36 -0
  50. data/spec/dummy/rails-4.0.2/config/initializers/backtrace_silencers.rb +7 -0
  51. data/spec/dummy/rails-4.0.2/config/initializers/favourite_object.rb +9 -0
  52. data/spec/dummy/rails-4.0.2/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy/rails-4.0.2/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/rails-4.0.2/config/initializers/mime_types.rb +5 -0
  55. data/spec/dummy/rails-4.0.2/config/initializers/secret_token.rb +12 -0
  56. data/spec/dummy/rails-4.0.2/config/initializers/session_store.rb +3 -0
  57. data/spec/dummy/rails-4.0.2/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy/rails-4.0.2/config/locales/en.yml +23 -0
  59. data/spec/dummy/rails-4.0.2/config/routes.rb +56 -0
  60. data/spec/dummy/rails-4.0.2/config.ru +4 -0
  61. data/spec/dummy/rails-4.0.2/db/migrate/20140401014304_create_users.rb +9 -0
  62. data/spec/dummy/rails-4.0.2/db/migrate/20140401014305_create_arbitrary_objects.rb +9 -0
  63. data/spec/dummy/rails-4.0.2/db/migrate/20140401014306959_create_favourite_object_favourites.rb +16 -0
  64. data/spec/dummy/rails-4.0.2/db/schema.rb +42 -0
  65. data/spec/dummy/rails-4.0.2/db/seeds.rb +7 -0
  66. data/spec/dummy/rails-4.0.2/db/test.sqlite3 +0 -0
  67. data/spec/dummy/rails-4.0.2/log/test.log +935 -0
  68. data/spec/dummy/rails-4.0.2/public/404.html +58 -0
  69. data/spec/dummy/rails-4.0.2/public/422.html +58 -0
  70. data/spec/dummy/rails-4.0.2/public/500.html +57 -0
  71. data/spec/dummy/rails-4.0.2/public/favicon.ico +0 -0
  72. data/spec/dummy/rails-4.0.2/public/robots.txt +5 -0
  73. data/spec/dummy/rails-4.0.2/test/fixtures/arbitrary_objects.yml +7 -0
  74. data/spec/dummy/rails-4.0.2/test/fixtures/users.yml +7 -0
  75. data/spec/dummy/rails-4.0.2/test/models/arbitrary_object_test.rb +7 -0
  76. data/spec/dummy/rails-4.0.2/test/models/user_test.rb +7 -0
  77. data/spec/dummy/rails-4.0.2/test/test_helper.rb +15 -0
  78. data/spec/models/favourite_object/favourite_spec.rb +49 -0
  79. data/spec/spec_helper.rb +41 -0
  80. data/spec/support/rails_template.rb +11 -0
  81. metadata +301 -0
@@ -0,0 +1,935 @@
1
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateUsers (20140401014304)
5
+  (0.1ms) begin transaction
6
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
7
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140401014304"]]
8
+  (1.1ms) commit transaction
9
+ Migrating to CreateArbitraryObjects (20140401014305)
10
+  (0.1ms) begin transaction
11
+  (0.3ms) CREATE TABLE "arbitrary_objects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime, "updated_at" datetime) 
12
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140401014305"]]
13
+  (0.8ms) commit transaction
14
+ Migrating to CreateFavouriteObjectFavourites (20140401014306959)
15
+  (0.1ms) begin transaction
16
+  (0.3ms) CREATE TABLE "favourite_object_favourites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "target_id" integer, "target_type" varchar(255), "third_party_id" varchar(255), "third_party_type" varchar(255), "owner_id" integer, "owner_type" varchar(255), "is_favourited" boolean DEFAULT 'f', "params" text, "third_party_flag" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime) 
17
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140401014306959"]]
18
+  (1.0ms) commit transaction
19
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
+  (1.2ms) CREATE TABLE "arbitrary_objects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime, "updated_at" datetime) 
21
+  (1.0ms) CREATE TABLE "favourite_object_favourites" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "target_id" integer, "target_type" varchar(255), "third_party_id" varchar(255), "third_party_type" varchar(255), "owner_id" integer, "owner_type" varchar(255), "is_favourited" boolean DEFAULT 'f', "params" text, "third_party_flag" boolean DEFAULT 'f', "created_at" datetime, "updated_at" datetime)
22
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255), "created_at" datetime, "updated_at" datetime) 
23
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
24
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
25
+  (0.1ms) SELECT version FROM "schema_migrations"
26
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140401014306959')
27
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140401014304')
28
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140401014305')
29
+  (0.3ms) begin transaction
30
+  (0.0ms) SAVEPOINT active_record_1
31
+ SQL (2.9ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
32
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33
+  (0.0ms) SAVEPOINT active_record_1
34
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
35
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36
+  (0.1ms) SAVEPOINT active_record_1
37
+ SQL (0.4ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
38
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39
+  (0.0ms) SAVEPOINT active_record_1
40
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
41
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42
+  (0.1ms) SAVEPOINT active_record_1
43
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
44
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45
+  (0.0ms) SAVEPOINT active_record_1
46
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
47
+  (0.0ms) RELEASE SAVEPOINT active_record_1
48
+ Processing by FavouriteObject::FavouritesController#index as JSON
49
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
50
+ FavouriteObject::Favourite Load (0.5ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
51
+ Completed 500 Internal Server Error in 26ms
52
+  (8.5ms) rollback transaction
53
+  (0.1ms) begin transaction
54
+  (0.1ms) SAVEPOINT active_record_1
55
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
56
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57
+  (0.1ms) SAVEPOINT active_record_1
58
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
59
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60
+  (0.0ms) SAVEPOINT active_record_1
61
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
62
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63
+  (0.1ms) SAVEPOINT active_record_1
64
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
65
+  (0.1ms) RELEASE SAVEPOINT active_record_1
66
+  (0.1ms) SAVEPOINT active_record_1
67
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
68
+  (0.1ms) RELEASE SAVEPOINT active_record_1
69
+  (0.1ms) SAVEPOINT active_record_1
70
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
71
+  (0.1ms) RELEASE SAVEPOINT active_record_1
72
+ Processing by FavouriteObject::FavouritesController#index as JSON
73
+ Parameters: {"type"=>"Sale"}
74
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'Sale')
75
+ FavouriteObject::Favourite Load (0.3ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'Sale') ORDER BY created_at DESC LIMIT 25 OFFSET 0
76
+ Completed 500 Internal Server Error in 8ms
77
+  (0.7ms) rollback transaction
78
+  (0.1ms) begin transaction
79
+  (0.1ms) SAVEPOINT active_record_1
80
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
81
+  (0.1ms) RELEASE SAVEPOINT active_record_1
82
+  (0.1ms) SAVEPOINT active_record_1
83
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
84
+  (0.1ms) RELEASE SAVEPOINT active_record_1
85
+  (0.1ms) SAVEPOINT active_record_1
86
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
87
+  (0.1ms) RELEASE SAVEPOINT active_record_1
88
+  (0.0ms) SAVEPOINT active_record_1
89
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
90
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91
+  (0.1ms) SAVEPOINT active_record_1
92
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
93
+  (0.1ms) RELEASE SAVEPOINT active_record_1
94
+  (0.0ms) SAVEPOINT active_record_1
95
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
96
+  (0.0ms) RELEASE SAVEPOINT active_record_1
97
+ Processing by FavouriteObject::FavouritesController#index as HTML
98
+ Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
99
+  (0.7ms) rollback transaction
100
+  (0.2ms) begin transaction
101
+  (0.1ms) SAVEPOINT active_record_1
102
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
104
+  (0.1ms) SAVEPOINT active_record_1
105
+ SQL (0.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
107
+ Processing by FavouriteObject::FavouritesController#update as HTML
108
+ Parameters: {"target_type"=>"ArbitraryObject", "target_id"=>"1"}
109
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
110
+  (0.1ms) SAVEPOINT active_record_1
111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
112
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.3ms)
113
+  (0.7ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+  (0.1ms) SAVEPOINT active_record_1
116
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
117
+  (0.2ms) RELEASE SAVEPOINT active_record_1
118
+  (0.1ms) SAVEPOINT active_record_1
119
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
121
+  (0.1ms) SAVEPOINT active_record_1
122
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
124
+  (0.0ms) SAVEPOINT active_record_1
125
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
127
+ Processing by FavouriteObject::FavouritesController#update as HTML
128
+ Parameters: {"favourite"=>false, "target_type"=>"ArbitraryObject", "target_id"=>"1"}
129
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
130
+  (0.1ms) SAVEPOINT active_record_1
131
+ SQL (0.1ms) DELETE FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."id" = ? [["id", 1]]
132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
133
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
134
+  (0.6ms) rollback transaction
135
+  (0.2ms) begin transaction
136
+  (0.1ms) SAVEPOINT active_record_1
137
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139
+ Processing by FavouriteObject::FavouritesController#update as HTML
140
+ Parameters: {"third_party_flag"=>"true", "favourite"=>"true", "target_type"=>"RandomClass", "target_id"=>"object_1"}
141
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'object_1' AND "favourite_object_favourites"."third_party_type" = 'RandomClass' AND "favourite_object_favourites"."third_party_flag" = 't' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
142
+  (0.0ms) SAVEPOINT active_record_1
143
+ SQL (0.4ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", "object_1"], ["third_party_type", "RandomClass"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
145
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.7ms)
146
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" ORDER BY "favourite_object_favourites"."id" DESC LIMIT 1
147
+  (0.5ms) rollback transaction
148
+  (0.1ms) begin transaction
149
+  (0.0ms) SAVEPOINT active_record_1
150
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
152
+  (0.1ms) SAVEPOINT active_record_1
153
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
155
+  (0.1ms) SAVEPOINT active_record_1
156
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
157
+  (0.1ms) RELEASE SAVEPOINT active_record_1
158
+  (0.1ms) SAVEPOINT active_record_1
159
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
161
+  (0.0ms) SAVEPOINT active_record_1
162
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
163
+  (0.1ms) RELEASE SAVEPOINT active_record_1
164
+  (0.1ms) SAVEPOINT active_record_1
165
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
166
+  (0.0ms) RELEASE SAVEPOINT active_record_1
167
+  (0.6ms) rollback transaction
168
+  (0.1ms) begin transaction
169
+  (0.1ms) SAVEPOINT active_record_1
170
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
172
+  (0.1ms) SAVEPOINT active_record_1
173
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
174
+  (0.1ms) RELEASE SAVEPOINT active_record_1
175
+  (0.0ms) SAVEPOINT active_record_1
176
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
177
+  (0.1ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
181
+  (0.0ms) SAVEPOINT active_record_1
182
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
184
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
185
+  (0.6ms) rollback transaction
186
+  (0.1ms) begin transaction
187
+  (0.0ms) SAVEPOINT active_record_1
188
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
189
+  (0.1ms) RELEASE SAVEPOINT active_record_1
190
+  (0.1ms) SAVEPOINT active_record_1
191
+ SQL (0.6ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
193
+  (0.1ms) SAVEPOINT active_record_1
194
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00]]
195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
196
+  (0.0ms) SAVEPOINT active_record_1
197
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
199
+  (0.0ms) SAVEPOINT active_record_1
200
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Tue, 01 Apr 2014 01:43:12 UTC +00:00], ["params", "--- {}\n"]]
201
+  (0.1ms) RELEASE SAVEPOINT active_record_1
202
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
203
+  (0.4ms) rollback transaction
204
+  (0.4ms) begin transaction
205
+  (0.1ms) SAVEPOINT active_record_1
206
+ SQL (7.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
207
+  (0.1ms) RELEASE SAVEPOINT active_record_1
208
+  (0.0ms) SAVEPOINT active_record_1
209
+ SQL (1.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
210
+  (0.1ms) RELEASE SAVEPOINT active_record_1
211
+  (0.1ms) SAVEPOINT active_record_1
212
+ SQL (0.7ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
214
+  (0.0ms) SAVEPOINT active_record_1
215
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
217
+  (0.0ms) SAVEPOINT active_record_1
218
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
220
+  (0.0ms) SAVEPOINT active_record_1
221
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
223
+ Processing by FavouriteObject::FavouritesController#index as JSON
224
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
225
+ FavouriteObject::Favourite Load (0.4ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
226
+ Completed 500 Internal Server Error in 17ms
227
+  (1.0ms) rollback transaction
228
+  (0.1ms) begin transaction
229
+  (0.1ms) SAVEPOINT active_record_1
230
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
232
+  (0.0ms) SAVEPOINT active_record_1
233
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
235
+  (0.0ms) SAVEPOINT active_record_1
236
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238
+  (0.0ms) SAVEPOINT active_record_1
239
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
241
+  (0.0ms) SAVEPOINT active_record_1
242
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
244
+  (0.0ms) SAVEPOINT active_record_1
245
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
247
+ Processing by FavouriteObject::FavouritesController#index as JSON
248
+ Parameters: {"type"=>"Sale"}
249
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'Sale')
250
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'Sale') ORDER BY created_at DESC LIMIT 25 OFFSET 0
251
+ Completed 500 Internal Server Error in 5ms
252
+  (0.6ms) rollback transaction
253
+  (0.1ms) begin transaction
254
+  (0.1ms) SAVEPOINT active_record_1
255
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
257
+  (0.0ms) SAVEPOINT active_record_1
258
+ SQL (0.2ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
259
+  (0.0ms) RELEASE SAVEPOINT active_record_1
260
+  (0.0ms) SAVEPOINT active_record_1
261
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
263
+  (0.0ms) SAVEPOINT active_record_1
264
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
265
+  (0.0ms) RELEASE SAVEPOINT active_record_1
266
+  (0.0ms) SAVEPOINT active_record_1
267
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
269
+  (0.0ms) SAVEPOINT active_record_1
270
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
272
+ Processing by FavouriteObject::FavouritesController#index as HTML
273
+ Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.0ms)
274
+  (0.6ms) rollback transaction
275
+  (0.1ms) begin transaction
276
+  (0.0ms) SAVEPOINT active_record_1
277
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
278
+  (0.0ms) RELEASE SAVEPOINT active_record_1
279
+  (0.0ms) SAVEPOINT active_record_1
280
+ SQL (0.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
282
+ Processing by FavouriteObject::FavouritesController#update as HTML
283
+ Parameters: {"target_type"=>"ArbitraryObject", "target_id"=>"1"}
284
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
285
+  (0.0ms) SAVEPOINT active_record_1
286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
287
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
288
+  (0.7ms) rollback transaction
289
+  (0.0ms) begin transaction
290
+  (0.0ms) SAVEPOINT active_record_1
291
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
293
+  (0.0ms) SAVEPOINT active_record_1
294
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
296
+  (0.0ms) SAVEPOINT active_record_1
297
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
299
+  (0.0ms) SAVEPOINT active_record_1
300
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
302
+ Processing by FavouriteObject::FavouritesController#update as HTML
303
+ Parameters: {"favourite"=>false, "target_type"=>"ArbitraryObject", "target_id"=>"1"}
304
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
305
+  (0.1ms) SAVEPOINT active_record_1
306
+ SQL (0.1ms) DELETE FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."id" = ? [["id", 1]]
307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
308
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
309
+  (0.5ms) rollback transaction
310
+  (0.0ms) begin transaction
311
+  (0.1ms) SAVEPOINT active_record_1
312
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
314
+ Processing by FavouriteObject::FavouritesController#update as HTML
315
+ Parameters: {"third_party_flag"=>"true", "favourite"=>"true", "target_type"=>"RandomClass", "target_id"=>"object_1"}
316
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'object_1' AND "favourite_object_favourites"."third_party_type" = 'RandomClass' AND "favourite_object_favourites"."third_party_flag" = 't' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
317
+  (0.0ms) SAVEPOINT active_record_1
318
+ SQL (0.4ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", "object_1"], ["third_party_type", "RandomClass"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
320
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)
321
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" ORDER BY "favourite_object_favourites"."id" DESC LIMIT 1
322
+  (0.7ms) rollback transaction
323
+  (0.1ms) begin transaction
324
+  (0.1ms) SAVEPOINT active_record_1
325
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
326
+  (0.0ms) RELEASE SAVEPOINT active_record_1
327
+  (0.1ms) SAVEPOINT active_record_1
328
+ SQL (0.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
329
+  (0.0ms) RELEASE SAVEPOINT active_record_1
330
+  (0.1ms) SAVEPOINT active_record_1
331
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
332
+  (0.1ms) RELEASE SAVEPOINT active_record_1
333
+  (0.1ms) SAVEPOINT active_record_1
334
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
335
+  (0.1ms) RELEASE SAVEPOINT active_record_1
336
+  (0.1ms) SAVEPOINT active_record_1
337
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
339
+  (0.0ms) SAVEPOINT active_record_1
340
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
342
+  (0.4ms) rollback transaction
343
+  (0.1ms) begin transaction
344
+  (0.1ms) SAVEPOINT active_record_1
345
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
347
+  (0.0ms) SAVEPOINT active_record_1
348
+ SQL (0.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
350
+  (0.0ms) SAVEPOINT active_record_1
351
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
353
+  (0.0ms) SAVEPOINT active_record_1
354
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
356
+  (0.0ms) SAVEPOINT active_record_1
357
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
359
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
360
+  (0.6ms) rollback transaction
361
+  (0.1ms) begin transaction
362
+  (0.1ms) SAVEPOINT active_record_1
363
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
364
+  (0.1ms) RELEASE SAVEPOINT active_record_1
365
+  (0.0ms) SAVEPOINT active_record_1
366
+ SQL (0.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
368
+  (0.0ms) SAVEPOINT active_record_1
369
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00]]
370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
371
+  (0.0ms) SAVEPOINT active_record_1
372
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
374
+  (0.0ms) SAVEPOINT active_record_1
375
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:05:58 UTC +00:00], ["params", "--- {}\n"]]
376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
377
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
378
+  (0.6ms) rollback transaction
379
+  (0.4ms) begin transaction
380
+  (0.1ms) SAVEPOINT active_record_1
381
+ SQL (6.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00]]
382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
383
+  (0.1ms) SAVEPOINT active_record_1
384
+ SQL (1.8ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00]]
385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
386
+  (0.1ms) SAVEPOINT active_record_1
387
+ SQL (0.7ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00]]
388
+  (0.1ms) RELEASE SAVEPOINT active_record_1
389
+  (0.0ms) SAVEPOINT active_record_1
390
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00], ["params", "--- {}\n"]]
391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
392
+  (0.0ms) SAVEPOINT active_record_1
393
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00]]
394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
395
+  (0.0ms) SAVEPOINT active_record_1
396
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:06:44 UTC +00:00], ["params", "--- {}\n"]]
397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
398
+ Processing by FavouriteObject::FavouritesController#index as JSON
399
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
400
+ FavouriteObject::Favourite Load (0.3ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
401
+ Completed 500 Internal Server Error in 18ms
402
+  (0.6ms) rollback transaction
403
+  (0.3ms) begin transaction
404
+  (0.1ms) SAVEPOINT active_record_1
405
+ SQL (6.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:08:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:08:42 UTC +00:00]]
406
+  (0.1ms) RELEASE SAVEPOINT active_record_1
407
+  (0.1ms) SAVEPOINT active_record_1
408
+ SQL (1.1ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00]]
409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
410
+  (0.1ms) SAVEPOINT active_record_1
411
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00]]
412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
413
+  (0.0ms) SAVEPOINT active_record_1
414
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00], ["params", "--- {}\n"]]
415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
416
+  (0.0ms) SAVEPOINT active_record_1
417
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 99], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00]]
418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
419
+  (0.0ms) SAVEPOINT active_record_1
420
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 2 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:08:43 UTC +00:00], ["params", "--- {}\n"]]
421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
422
+ Processing by FavouriteObject::FavouritesController#index as JSON
423
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
424
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
425
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 99]]
426
+ ArbitraryObject Load (0.1ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
427
+ Completed 500 Internal Server Error in 32ms
428
+  (0.6ms) rollback transaction
429
+  (0.3ms) begin transaction
430
+  (0.1ms) SAVEPOINT active_record_1
431
+ SQL (2.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00]]
432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
433
+  (0.0ms) SAVEPOINT active_record_1
434
+ SQL (1.1ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00]]
435
+  (0.1ms) RELEASE SAVEPOINT active_record_1
436
+  (0.1ms) SAVEPOINT active_record_1
437
+ SQL (0.5ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00]]
438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
439
+  (0.1ms) SAVEPOINT active_record_1
440
+ SQL (0.5ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:09:16 UTC +00:00], ["params", "--- {}\n"]]
441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
442
+  (9.0ms) rollback transaction
443
+  (0.4ms) begin transaction
444
+  (0.0ms) SAVEPOINT active_record_1
445
+ SQL (2.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00]]
446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
447
+  (0.0ms) SAVEPOINT active_record_1
448
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00]]
449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
450
+  (0.1ms) SAVEPOINT active_record_1
451
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00]]
452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
453
+  (0.0ms) SAVEPOINT active_record_1
454
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:09:27 UTC +00:00], ["params", "--- {}\n"]]
455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
456
+ Processing by FavouriteObject::FavouritesController#index as JSON
457
+ Parameters: {"type"=>"ArbitraryObject"}
458
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'ArbitraryObject')
459
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'ArbitraryObject') ORDER BY created_at DESC LIMIT 25 OFFSET 0
460
+ ArbitraryObject Load (0.1ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
461
+ Completed 500 Internal Server Error in 16ms
462
+  (8.4ms) rollback transaction
463
+  (0.4ms) begin transaction
464
+  (0.0ms) SAVEPOINT active_record_1
465
+ SQL (3.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00]]
466
+  (0.1ms) RELEASE SAVEPOINT active_record_1
467
+  (0.0ms) SAVEPOINT active_record_1
468
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00]]
469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
470
+  (0.1ms) SAVEPOINT active_record_1
471
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00]]
472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
473
+  (0.0ms) SAVEPOINT active_record_1
474
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:09:43 UTC +00:00], ["params", "--- {}\n"]]
475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
476
+ Processing by FavouriteObject::FavouritesController#index as JSON
477
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
478
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
479
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
480
+ Completed 500 Internal Server Error in 16ms
481
+  (8.5ms) rollback transaction
482
+  (0.4ms) begin transaction
483
+  (0.1ms) SAVEPOINT active_record_1
484
+ SQL (2.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00]]
485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
486
+  (0.0ms) SAVEPOINT active_record_1
487
+ SQL (1.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00]]
488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
489
+  (0.1ms) SAVEPOINT active_record_1
490
+ SQL (0.6ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00]]
491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
492
+  (0.1ms) SAVEPOINT active_record_1
493
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:10:56 UTC +00:00], ["params", "--- {}\n"]]
494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
495
+ Processing by FavouriteObject::FavouritesController#index as JSON
496
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
497
+ FavouriteObject::Favourite Load (0.3ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
498
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
499
+ Completed 500 Internal Server Error in 28ms
500
+  (6.0ms) rollback transaction
501
+  (0.3ms) begin transaction
502
+  (0.0ms) SAVEPOINT active_record_1
503
+ SQL (3.1ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00]]
504
+  (0.1ms) RELEASE SAVEPOINT active_record_1
505
+  (0.0ms) SAVEPOINT active_record_1
506
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00]]
507
+  (0.1ms) RELEASE SAVEPOINT active_record_1
508
+  (0.1ms) SAVEPOINT active_record_1
509
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00]]
510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
511
+  (0.1ms) SAVEPOINT active_record_1
512
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:11:40 UTC +00:00], ["params", "--- {}\n"]]
513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
514
+ Processing by FavouriteObject::FavouritesController#index as JSON
515
+ FavouriteObject::Favourite Load (0.3ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
516
+ ArbitraryObject Load (0.1ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
517
+ Completed 500 Internal Server Error in 15ms
518
+  (8.5ms) rollback transaction
519
+  (0.3ms) begin transaction
520
+  (0.0ms) SAVEPOINT active_record_1
521
+ SQL (3.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00]]
522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
523
+  (0.0ms) SAVEPOINT active_record_1
524
+ SQL (1.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_1
526
+  (0.1ms) SAVEPOINT active_record_1
527
+ SQL (0.4ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00]]
528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
529
+  (0.0ms) SAVEPOINT active_record_1
530
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:12:22 UTC +00:00], ["params", "--- {}\n"]]
531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
532
+ Processing by FavouriteObject::FavouritesController#index as JSON
533
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
534
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
535
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
536
+ Completed 500 Internal Server Error in 18ms
537
+  (0.6ms) rollback transaction
538
+  (0.5ms) begin transaction
539
+  (0.0ms) SAVEPOINT active_record_1
540
+ SQL (2.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00]]
541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
542
+  (0.0ms) SAVEPOINT active_record_1
543
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00]]
544
+  (0.1ms) RELEASE SAVEPOINT active_record_1
545
+  (0.1ms) SAVEPOINT active_record_1
546
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00]]
547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
548
+  (0.0ms) SAVEPOINT active_record_1
549
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:13:01 UTC +00:00], ["params", "--- {}\n"]]
550
+  (0.0ms) RELEASE SAVEPOINT active_record_1
551
+ Processing by FavouriteObject::FavouritesController#index as JSON
552
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
553
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
554
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
555
+ Completed 500 Internal Server Error in 16ms
556
+  (7.5ms) rollback transaction
557
+  (0.3ms) begin transaction
558
+  (0.1ms) SAVEPOINT active_record_1
559
+ SQL (2.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00]]
560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
561
+  (0.0ms) SAVEPOINT active_record_1
562
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00]]
563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
564
+  (0.1ms) SAVEPOINT active_record_1
565
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00]]
566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
567
+  (0.0ms) SAVEPOINT active_record_1
568
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:14:18 UTC +00:00], ["params", "--- {}\n"]]
569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
570
+ Processing by FavouriteObject::FavouritesController#index as JSON
571
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
572
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
573
+ ArbitraryObject Load (0.3ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
574
+ Completed 500 Internal Server Error in 21ms
575
+  (0.6ms) rollback transaction
576
+  (0.6ms) begin transaction
577
+  (0.1ms) SAVEPOINT active_record_1
578
+ SQL (3.2ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00]]
579
+  (0.1ms) RELEASE SAVEPOINT active_record_1
580
+  (0.0ms) SAVEPOINT active_record_1
581
+ SQL (1.1ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00]]
582
+  (0.1ms) RELEASE SAVEPOINT active_record_1
583
+  (0.1ms) SAVEPOINT active_record_1
584
+ SQL (0.5ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00]]
585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
586
+  (0.1ms) SAVEPOINT active_record_1
587
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:14:27 UTC +00:00], ["params", "--- {}\n"]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
589
+ Processing by FavouriteObject::FavouritesController#index as JSON
590
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
591
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
592
+ Completed 500 Internal Server Error in 9ms
593
+  (7.6ms) rollback transaction
594
+  (0.3ms) begin transaction
595
+  (0.0ms) SAVEPOINT active_record_1
596
+ SQL (2.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00]]
597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
598
+  (0.0ms) SAVEPOINT active_record_1
599
+ SQL (1.2ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00]]
600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
601
+  (0.1ms) SAVEPOINT active_record_1
602
+ SQL (0.5ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00]]
603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
604
+  (0.1ms) SAVEPOINT active_record_1
605
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:14:31 UTC +00:00], ["params", "--- {}\n"]]
606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
607
+ Processing by FavouriteObject::FavouritesController#index as JSON
608
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
609
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
610
+ Completed 500 Internal Server Error in 9ms
611
+  (8.5ms) rollback transaction
612
+  (0.3ms) begin transaction
613
+  (0.0ms) SAVEPOINT active_record_1
614
+ SQL (2.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00]]
615
+  (0.1ms) RELEASE SAVEPOINT active_record_1
616
+  (0.0ms) SAVEPOINT active_record_1
617
+ SQL (1.2ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00]]
618
+  (0.1ms) RELEASE SAVEPOINT active_record_1
619
+  (0.1ms) SAVEPOINT active_record_1
620
+ SQL (0.5ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00]]
621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
622
+  (0.1ms) SAVEPOINT active_record_1
623
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:14:57 UTC +00:00], ["params", "--- {}\n"]]
624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
625
+ Processing by FavouriteObject::FavouritesController#index as JSON
626
+  (0.2ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
627
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
628
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
629
+ Completed 500 Internal Server Error in 17ms
630
+  (8.5ms) rollback transaction
631
+  (0.3ms) begin transaction
632
+  (0.0ms) SAVEPOINT active_record_1
633
+ SQL (4.9ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00]]
634
+  (0.1ms) RELEASE SAVEPOINT active_record_1
635
+  (0.0ms) SAVEPOINT active_record_1
636
+ SQL (1.1ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00]]
637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
638
+  (0.1ms) SAVEPOINT active_record_1
639
+ SQL (0.5ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00]]
640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
641
+  (0.1ms) SAVEPOINT active_record_1
642
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 03 Apr 2014 05:15:35 UTC +00:00], ["params", "--- {}\n"]]
643
+  (0.1ms) RELEASE SAVEPOINT active_record_1
644
+ Processing by FavouriteObject::FavouritesController#index as JSON
645
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
646
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
647
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
648
+ Completed 500 Internal Server Error in 18ms
649
+  (7.8ms) rollback transaction
650
+  (0.4ms) begin transaction
651
+  (0.1ms) SAVEPOINT active_record_1
652
+ SQL (4.9ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00]]
653
+  (0.1ms) RELEASE SAVEPOINT active_record_1
654
+  (0.0ms) SAVEPOINT active_record_1
655
+ SQL (1.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+  (0.1ms) SAVEPOINT active_record_1
658
+ SQL (0.7ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00]]
659
+  (0.1ms) RELEASE SAVEPOINT active_record_1
660
+  (0.1ms) SAVEPOINT active_record_1
661
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00], ["params", "--- {}\n"]]
662
+  (0.1ms) RELEASE SAVEPOINT active_record_1
663
+  (0.1ms) SAVEPOINT active_record_1
664
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:22:13 UTC +00:00]]
665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
666
+  (0.6ms) rollback transaction
667
+  (0.5ms) begin transaction
668
+  (0.0ms) SAVEPOINT active_record_1
669
+ SQL (3.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00]]
670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
671
+  (0.0ms) SAVEPOINT active_record_1
672
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00]]
673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
674
+  (0.1ms) SAVEPOINT active_record_1
675
+ SQL (0.4ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00]]
676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
677
+  (0.1ms) SAVEPOINT active_record_1
678
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00], ["params", "--- {}\n"]]
679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
680
+  (0.1ms) SAVEPOINT active_record_1
681
+ SQL (0.5ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:23:03 UTC +00:00]]
682
+  (0.1ms) RELEASE SAVEPOINT active_record_1
683
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'Sale' AND "favourite_object_favourites"."third_party_type" = 1 ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
684
+  (0.7ms) rollback transaction
685
+  (0.4ms) begin transaction
686
+  (0.1ms) SAVEPOINT active_record_1
687
+ SQL (5.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00]]
688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
689
+  (0.1ms) SAVEPOINT active_record_1
690
+ SQL (1.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00]]
691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
692
+  (0.1ms) SAVEPOINT active_record_1
693
+ SQL (0.7ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00]]
694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
695
+  (0.1ms) SAVEPOINT active_record_1
696
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00], ["params", "--- {}\n"]]
697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
698
+  (0.1ms) SAVEPOINT active_record_1
699
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:26:14 UTC +00:00]]
700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
701
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites"
702
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'Sale' AND "favourite_object_favourites"."third_party_type" = 1 ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
703
+  (0.7ms) rollback transaction
704
+  (0.3ms) begin transaction
705
+  (0.0ms) SAVEPOINT active_record_1
706
+ SQL (2.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00]]
707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
708
+  (0.0ms) SAVEPOINT active_record_1
709
+ SQL (1.0ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00]]
710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
711
+  (0.1ms) SAVEPOINT active_record_1
712
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00]]
713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
714
+  (0.0ms) SAVEPOINT active_record_1
715
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00], ["params", "--- {}\n"]]
716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
717
+  (0.0ms) SAVEPOINT active_record_1
718
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:27:00 UTC +00:00]]
719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
720
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'Sale' AND "favourite_object_favourites"."third_party_type" = 1 ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
721
+  (8.6ms) rollback transaction
722
+  (0.3ms) begin transaction
723
+  (0.0ms) SAVEPOINT active_record_1
724
+ SQL (6.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00]]
725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
726
+  (0.0ms) SAVEPOINT active_record_1
727
+ SQL (1.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00]]
728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
729
+  (0.1ms) SAVEPOINT active_record_1
730
+ SQL (0.7ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00]]
731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
732
+  (0.0ms) SAVEPOINT active_record_1
733
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00], ["params", "--- {}\n"]]
734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
735
+  (0.1ms) SAVEPOINT active_record_1
736
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:27:21 UTC +00:00]]
737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
738
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'Sale' AND "favourite_object_favourites"."third_party_type" = 1 ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
739
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites"
740
+  (0.9ms) rollback transaction
741
+  (0.6ms) begin transaction
742
+  (0.0ms) SAVEPOINT active_record_1
743
+ SQL (5.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00]]
744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
745
+  (0.1ms) SAVEPOINT active_record_1
746
+ SQL (1.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00], ["updated_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00]]
747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
748
+  (0.1ms) SAVEPOINT active_record_1
749
+ SQL (0.6ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00]]
750
+  (0.1ms) RELEASE SAVEPOINT active_record_1
751
+  (0.0ms) SAVEPOINT active_record_1
752
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00], ["params", "--- {}\n"]]
753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
754
+  (0.0ms) SAVEPOINT active_record_1
755
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 03 Apr 2014 05:29:15 UTC +00:00]]
756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
757
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 1 AND "favourite_object_favourites"."third_party_type" = 'Sale' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
758
+  (0.5ms) rollback transaction
759
+  (0.4ms) begin transaction
760
+  (0.2ms) SAVEPOINT active_record_1
761
+ SQL (7.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
763
+  (0.1ms) SAVEPOINT active_record_1
764
+ SQL (1.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
766
+  (0.1ms) SAVEPOINT active_record_1
767
+ SQL (0.7ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
768
+  (0.1ms) RELEASE SAVEPOINT active_record_1
769
+  (0.0ms) SAVEPOINT active_record_1
770
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
772
+ Processing by FavouriteObject::FavouritesController#index as JSON
773
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
774
+ FavouriteObject::Favourite Load (0.3ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
775
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
776
+ Completed 500 Internal Server Error in 23ms
777
+  (1.0ms) rollback transaction
778
+  (0.1ms) begin transaction
779
+  (0.1ms) SAVEPOINT active_record_1
780
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
782
+  (0.1ms) SAVEPOINT active_record_1
783
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
785
+  (0.0ms) SAVEPOINT active_record_1
786
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
788
+  (0.0ms) SAVEPOINT active_record_1
789
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
791
+ Processing by FavouriteObject::FavouritesController#index as JSON
792
+ Parameters: {"type"=>"ArbitraryObject"}
793
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'ArbitraryObject')
794
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'ArbitraryObject') ORDER BY created_at DESC LIMIT 25 OFFSET 0
795
+ ArbitraryObject Load (0.1ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
796
+ Completed 500 Internal Server Error in 6ms
797
+  (0.5ms) rollback transaction
798
+  (0.1ms) begin transaction
799
+  (0.1ms) SAVEPOINT active_record_1
800
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
802
+  (0.1ms) SAVEPOINT active_record_1
803
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
805
+  (0.1ms) SAVEPOINT active_record_1
806
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
808
+  (0.0ms) SAVEPOINT active_record_1
809
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
810
+  (0.1ms) RELEASE SAVEPOINT active_record_1
811
+ Processing by FavouriteObject::FavouritesController#index as HTML
812
+ Completed 200 OK in 17ms (Views: 15.4ms | ActiveRecord: 0.0ms)
813
+  (0.6ms) rollback transaction
814
+  (0.1ms) begin transaction
815
+  (0.1ms) SAVEPOINT active_record_1
816
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
818
+  (0.0ms) SAVEPOINT active_record_1
819
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
821
+ Processing by FavouriteObject::FavouritesController#update as HTML
822
+ Parameters: {"target_type"=>"ArbitraryObject", "target_id"=>"1"}
823
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
824
+  (0.1ms) SAVEPOINT active_record_1
825
+  (0.0ms) RELEASE SAVEPOINT active_record_1
826
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
827
+  (0.5ms) rollback transaction
828
+  (0.1ms) begin transaction
829
+  (0.1ms) SAVEPOINT active_record_1
830
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
831
+  (0.1ms) RELEASE SAVEPOINT active_record_1
832
+  (0.0ms) SAVEPOINT active_record_1
833
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
835
+  (0.1ms) SAVEPOINT active_record_1
836
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
838
+  (0.0ms) SAVEPOINT active_record_1
839
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
841
+ Processing by FavouriteObject::FavouritesController#update as HTML
842
+ Parameters: {"favourite"=>false, "target_type"=>"ArbitraryObject", "target_id"=>"1"}
843
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
844
+  (0.0ms) SAVEPOINT active_record_1
845
+ SQL (0.1ms) DELETE FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."id" = ? [["id", 1]]
846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
847
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
848
+  (0.9ms) rollback transaction
849
+  (0.1ms) begin transaction
850
+  (0.1ms) SAVEPOINT active_record_1
851
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
853
+ Processing by FavouriteObject::FavouritesController#update as HTML
854
+ Parameters: {"third_party_flag"=>"true", "favourite"=>"true", "target_type"=>"RandomClass", "target_id"=>"object_1"}
855
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'object_1' AND "favourite_object_favourites"."third_party_type" = 'RandomClass' AND "favourite_object_favourites"."third_party_flag" = 't' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
856
+  (0.0ms) SAVEPOINT active_record_1
857
+ SQL (0.4ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", "object_1"], ["third_party_type", "RandomClass"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
859
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.6ms)
860
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" ORDER BY "favourite_object_favourites"."id" DESC LIMIT 1
861
+  (0.6ms) rollback transaction
862
+  (0.1ms) begin transaction
863
+  (0.1ms) SAVEPOINT active_record_1
864
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
865
+  (0.1ms) RELEASE SAVEPOINT active_record_1
866
+  (0.1ms) SAVEPOINT active_record_1
867
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
868
+  (0.1ms) RELEASE SAVEPOINT active_record_1
869
+  (0.1ms) SAVEPOINT active_record_1
870
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
872
+  (0.0ms) SAVEPOINT active_record_1
873
+ SQL (0.4ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
874
+  (0.2ms) RELEASE SAVEPOINT active_record_1
875
+  (0.1ms) SAVEPOINT active_record_1
876
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
878
+  (0.1ms) SAVEPOINT active_record_1
879
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+  (0.5ms) rollback transaction
882
+  (0.1ms) begin transaction
883
+  (0.1ms) SAVEPOINT active_record_1
884
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
886
+  (0.1ms) SAVEPOINT active_record_1
887
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
889
+  (0.0ms) SAVEPOINT active_record_1
890
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
892
+  (0.0ms) SAVEPOINT active_record_1
893
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
895
+  (0.0ms) SAVEPOINT active_record_1
896
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
898
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
899
+  (0.6ms) rollback transaction
900
+  (0.1ms) begin transaction
901
+  (0.1ms) SAVEPOINT active_record_1
902
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
904
+  (0.1ms) SAVEPOINT active_record_1
905
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
907
+  (0.1ms) SAVEPOINT active_record_1
908
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
910
+  (0.0ms) SAVEPOINT active_record_1
911
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
913
+  (0.1ms) SAVEPOINT active_record_1
914
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
916
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = '1' AND "favourite_object_favourites"."third_party_type" = 'Sale' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
917
+  (0.6ms) rollback transaction
918
+  (0.1ms) begin transaction
919
+  (0.1ms) SAVEPOINT active_record_1
920
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
922
+  (0.1ms) SAVEPOINT active_record_1
923
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
924
+  (0.1ms) RELEASE SAVEPOINT active_record_1
925
+  (0.1ms) SAVEPOINT active_record_1
926
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00]]
927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
928
+  (0.1ms) SAVEPOINT active_record_1
929
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
931
+  (0.0ms) SAVEPOINT active_record_1
932
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Thu, 17 Apr 2014 05:13:53 UTC +00:00], ["params", "--- {}\n"]]
933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
934
+ FavouriteObject::Favourite Load (0.5ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
935
+  (0.7ms) rollback transaction