advert_selector 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,7 @@ module AdvertSelector
47
47
  total_days = ((end_time - start_time)/1.day).round
48
48
  daily_view_count = target_view_count/total_days
49
49
 
50
- days_ending_today = ((Time.now.end_of_day - start_time)/1.day).round
50
+ days_ending_today = ((Time.now.end_of_day - start_time)/1.day).ceil
51
51
  days_ending_today * daily_view_count
52
52
  end
53
53
 
@@ -1,3 +1,3 @@
1
1
  module AdvertSelector
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
Binary file
@@ -67253,3 +67253,2635 @@ Processing by ExamplesController#index as HTML
67253
67253
  [AdvertSelector] AdvertSelection finished
67254
67254
  Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.4ms)
67255
67255
   (0.1ms) rollback transaction
67256
+ Connecting to database specified by database.yml
67257
+  (0.1ms) begin transaction
67258
+ Fixture Delete (0.3ms) DELETE FROM "advert_selector_banners"
67259
+ Fixture Insert (0.2ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "running_view_count", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Coke banner', 'Coke', 405688915, '2012-10-22 15:13:04', 100, '2012-10-27 00:00:00', 't', '2012-10-22 15:13:04', 50, 814558298, 1000, 'f', 0, '2012-10-17 00:00:00')
67260
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Pepsi banner', 'Pepsi', 405688915, '2012-10-22 15:13:04', '2012-11-01 00:00:00', 't', '2012-10-22 15:13:04', 100, 394627963, 1000, 't', 0, '2012-10-22 00:00:00')
67261
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_banners" ("name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('parade_banner', 718799085, '2012-10-22 15:13:04', '2012-11-01 00:00:00', 'f', '2012-10-22 15:13:04', 1000, 207249520, 1000, 't', 1, '2012-10-22 00:00:00')
67262
+ Fixture Delete (0.2ms) DELETE FROM "advert_selector_helper_items"
67263
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_leaderboard', 2, '2012-10-22 15:13:04', '2012-10-22 15:13:04', 960656439, 't', 394627963, '<img src=''pepsi_banner''/>')
67264
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("position", "name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES (1, 'banner_leaderboard', '2012-10-22 15:13:04', '2012-10-22 15:13:04', 929640376, 't', 814558298, '<img src=''coke_banner''/>')
67265
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_parade', 1, '2012-10-22 15:13:04', '2012-10-22 15:13:04', 281932184, 't', 207249520, '<img src=''banner_parade''/>')
67266
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('request_params_include?', '2012-10-22 15:13:04', '2012-10-22 15:13:04', 435138789, 'f', 394627963, 'pepsi=true')
67267
+ Fixture Delete (0.1ms) DELETE FROM "advert_selector_placements"
67268
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Parade', '2012-10-22 15:13:04', '2012-10-22 15:13:04', 'leaderboard,video', 718799085)
67269
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "only_once_per_session", "id") VALUES ('Video', '2012-10-22 15:13:04', '2012-10-22 15:13:04', 'parade', 't', 1019730477)
67270
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Leaderboard', '2012-10-22 15:13:04', '2012-10-22 15:13:04', 'parade', 405688915)
67271
+  (57.2ms) commit transaction
67272
+  (0.1ms) begin transaction
67273
+ AdvertSelector::Banner Load (0.6ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67274
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67275
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67276
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items"
67277
+  (0.1ms) SAVEPOINT active_record_1
67278
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE ("advert_selector_helper_items"."banner_id" = 814558298) ORDER BY advert_selector_helper_items.position DESC LIMIT 1
67279
+ SQL (0.5ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", nil], ["position", 2], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67280
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 10)
67281
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", true], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "content_for_invalid"], ["position", 10], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67282
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
67283
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "some_limit_helper_here"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67284
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67285
+ SQL (0.1ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656440]]
67286
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position > 3)
67287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67288
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67289
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_helper_items" 
67290
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position LIMIT 1
67291
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position DESC LIMIT 1
67292
+  (0.1ms) rollback transaction
67293
+  (0.0ms) begin transaction
67294
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67295
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67296
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67297
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000064' OR end_time IS NULL)
67298
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000839' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.000951' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
67299
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.001828' OR end_time IS NULL)
67300
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.002487' OR end_time IS NULL) AND (start_time < '2011-10-22 10:00:00.002599' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
67301
+  (0.1ms) rollback transaction
67302
+  (0.0ms) begin transaction
67303
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67304
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67305
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67306
+  (0.1ms) rollback transaction
67307
+  (0.0ms) begin transaction
67308
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67309
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67310
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67311
+  (0.0ms) SAVEPOINT active_record_1
67312
+  (0.3ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.000824' WHERE "advert_selector_banners"."id" = 814558298
67313
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67315
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67316
+  (0.0ms) SAVEPOINT active_record_1
67317
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 551, "updated_at" = '2012-10-22 09:00:00.006720' WHERE "advert_selector_banners"."id" = 814558298
67318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67319
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67320
+  (0.1ms) rollback transaction
67321
+  (0.0ms) begin transaction
67322
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67323
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67324
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67325
+  (0.0ms) SAVEPOINT active_record_1
67326
+  (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "target_view_count" = 10, "updated_at" = '2012-10-22 09:00:00.000832' WHERE "advert_selector_banners"."id" = 814558298
67327
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67329
+  (0.0ms) SAVEPOINT active_record_1
67330
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 10, "updated_at" = '2012-10-22 09:00:00.004208' WHERE "advert_selector_banners"."id" = 814558298
67331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67332
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67333
+  (0.1ms) rollback transaction
67334
+  (0.0ms) begin transaction
67335
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67336
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67337
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67338
+  (0.0ms) SAVEPOINT active_record_1
67339
+  (0.2ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.000379' WHERE "advert_selector_banners"."id" = 814558298
67340
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67342
+  (0.0ms) SAVEPOINT active_record_1
67343
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-22 09:00:00.002335' WHERE "advert_selector_banners"."id" = 814558298
67344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67345
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67346
+  (0.1ms) rollback transaction
67347
+  (0.0ms) begin transaction
67348
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67349
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67350
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67351
+  (0.0ms) SAVEPOINT active_record_1
67352
+  (0.2ms) UPDATE "advert_selector_banners" SET "start_time" = '2012-10-22 10:00:00.000367', "updated_at" = '2012-10-22 09:00:00.000762' WHERE "advert_selector_banners"."id" = 814558298
67353
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67355
+  (0.0ms) SAVEPOINT active_record_1
67356
+  (0.2ms) UPDATE "advert_selector_banners" SET "end_time" = '2012-10-22 08:00:00.002507', "start_time" = '2012-10-22 07:00:00.002441', "updated_at" = '2012-10-22 09:00:00.002833' WHERE "advert_selector_banners"."id" = 814558298
67357
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67358
+  (0.0ms) SAVEPOINT active_record_1
67359
+  (0.1ms) UPDATE "advert_selector_banners" SET "end_time" = '2012-10-22 10:00:00.003834', "start_time" = NULL, "updated_at" = '2012-10-22 09:00:00.004129' WHERE "advert_selector_banners"."id" = 814558298
67360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67361
+  (0.1ms) rollback transaction
67362
+  (0.0ms) begin transaction
67363
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67364
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67365
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67366
+  (0.0ms) SAVEPOINT active_record_1
67367
+  (0.4ms) UPDATE "advert_selector_banners" SET "target_view_count" = 100, "end_time" = '2012-11-01 00:00:00.000000', "start_time" = '2012-10-21 21:00:00.000000', "updated_at" = '2012-10-22 09:00:00.000819' WHERE "advert_selector_banners"."id" = 814558298
67368
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67370
+  (0.0ms) SAVEPOINT active_record_1
67371
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.003007' WHERE "advert_selector_banners"."id" = 814558298
67372
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67373
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67374
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67375
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67376
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67377
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67378
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67379
+  (0.1ms) rollback transaction
67380
+  (0.0ms) begin transaction
67381
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67382
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67383
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67384
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners"
67385
+ Processing by AdvertSelector::BannersController#create as HTML
67386
+ Parameters: {"banner"=>{"comment"=>"Pepsi banner", "name"=>"Pepsi", "placement_id"=>"405688915", "end_time"=>"2012-11-01 00:00:00 UTC", "target_view_count"=>"1000", "frequency"=>"0", "start_time"=>"2012-10-22 00:00:00 UTC"}}
67387
+  (0.1ms) SAVEPOINT active_record_1
67388
+ SQL (0.6ms) INSERT INTO "advert_selector_banners" ("comment", "confirmed", "created_at", "end_time", "fast_mode", "frequency", "name", "placement_id", "priority", "running_view_count", "start_time", "target_view_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["comment", "Pepsi banner"], ["confirmed", false], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["end_time", Thu, 01 Nov 2012 00:00:00 UTC +00:00], ["fast_mode", false], ["frequency", 0], ["name", "Pepsi"], ["placement_id", 405688915], ["priority", 0], ["running_view_count", 0], ["start_time", Mon, 22 Oct 2012 00:00:00 UTC +00:00], ["target_view_count", 1000], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67389
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558299 ORDER BY position
67390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67391
+ Redirected to http://test.host/advert_selector/banners/814558299
67392
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
67393
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_banners" 
67394
+  (0.1ms) rollback transaction
67395
+  (0.0ms) begin transaction
67396
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67397
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67398
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67399
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" 
67400
+ Processing by AdvertSelector::BannersController#destroy as HTML
67401
+ Parameters: {"id"=>"394627963"}
67402
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
67403
+  (0.0ms) SAVEPOINT active_record_1
67404
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67405
+ SQL (0.3ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 435138789]]
67406
+ SQL (0.0ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656439]]
67407
+ SQL (0.0ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 394627963 AND position > 2)
67408
+ SQL (0.2ms) DELETE FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? [["id", 394627963]]
67409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67410
+ Redirected to http://test.host/advert_selector/banners
67411
+ Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
67412
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_banners"
67413
+  (0.1ms) rollback transaction
67414
+  (0.0ms) begin transaction
67415
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67416
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67417
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67418
+ Processing by AdvertSelector::BannersController#edit as HTML
67419
+ Parameters: {"id"=>"394627963"}
67420
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
67421
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67422
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963
67423
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67424
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/banners/_form.html.erb (71.5ms)
67425
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.084933') ORDER BY priority desc LIMIT 10
67426
+ AdvertSelector::Placement Load (0.3ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67427
+ AdvertSelector::Placement Load (0.2ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67428
+ AdvertSelector::Placement Load (0.2ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67429
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
67430
+ Completed 200 OK in 98ms (Views: 96.3ms | ActiveRecord: 1.3ms)
67431
+  (0.1ms) rollback transaction
67432
+  (0.0ms) begin transaction
67433
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67434
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67435
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67436
+ Processing by AdvertSelector::BannersController#index as HTML
67437
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners"
67438
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.007279') ORDER BY priority desc LIMIT 10
67439
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67440
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67441
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67442
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67443
+ Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.5ms)
67444
+  (0.1ms) rollback transaction
67445
+  (0.0ms) begin transaction
67446
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67447
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67448
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67449
+ Processing by AdvertSelector::BannersController#new as HTML
67450
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67451
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/banners/_form.html.erb (18.8ms)
67452
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.023716') ORDER BY priority desc LIMIT 10
67453
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67454
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67455
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67456
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
67457
+ Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.5ms)
67458
+  (0.1ms) rollback transaction
67459
+  (0.0ms) begin transaction
67460
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67461
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67462
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67463
+ Processing by AdvertSelector::BannersController#show as HTML
67464
+ Parameters: {"id"=>"394627963"}
67465
+ Redirected to http://test.host/advert_selector/banners/394627963/edit
67466
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
67467
+  (0.1ms) rollback transaction
67468
+  (0.0ms) begin transaction
67469
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67470
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67471
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67472
+ Processing by AdvertSelector::BannersController#update as HTML
67473
+ Parameters: {"banner"=>{"comment"=>"Pepsi banner"}, "id"=>"394627963"}
67474
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
67475
+  (0.0ms) SAVEPOINT active_record_1
67476
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67478
+ Redirected to http://test.host/advert_selector/banners/394627963
67479
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
67480
+  (0.1ms) rollback transaction
67481
+  (0.0ms) begin transaction
67482
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67483
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67484
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67485
+  (0.0ms) SAVEPOINT active_record_1
67486
+  (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 1, "updated_at" = '2012-10-22 09:00:00.001172' WHERE "advert_selector_banners"."id" = 394627963
67487
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67489
+ Processing by AdvertSelector::BannersController#update_running_view_count as HTML
67490
+ Parameters: {"banner"=>{"running_view_count"=>"99"}, "id"=>"394627963"}
67491
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
67492
+ SQL (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 99 WHERE "advert_selector_banners"."id" = 394627963
67493
+ SQL (0.4ms) UPDATE "advert_selector_banners" SET "running_view_count" = 99 WHERE "advert_selector_banners"."id" = 394627963
67494
+ Redirected to http://test.host/advert_selector/banners/394627963
67495
+ Completed 302 Found in 1114ms (ActiveRecord: 0.6ms)
67496
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67497
+  (0.1ms) rollback transaction
67498
+  (0.0ms) begin transaction
67499
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67500
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67501
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67502
+ Processing by AdvertSelector::MainController#index as HTML
67503
+ Filter chain halted as :admin_access_only rendered or redirected
67504
+ Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
67505
+  (0.1ms) rollback transaction
67506
+  (0.0ms) begin transaction
67507
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67508
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67509
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67510
+ Processing by AdvertSelector::MainController#clear_errors_log as HTML
67511
+ Redirected to http://test.host/advert_selector/
67512
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
67513
+  (0.1ms) rollback transaction
67514
+  (0.0ms) begin transaction
67515
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67516
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67517
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67518
+ Processing by AdvertSelector::MainController#index as HTML
67519
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.004135') ORDER BY priority desc LIMIT 10
67520
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67521
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67522
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67523
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67524
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.4ms)
67525
+  (0.1ms) rollback transaction
67526
+  (0.0ms) begin transaction
67527
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67528
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67529
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67530
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
67531
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67532
+  (0.0ms) rollback transaction
67533
+  (0.0ms) begin transaction
67534
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67535
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67536
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67537
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
67538
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67539
+  (0.0ms) SAVEPOINT active_record_1
67540
+  (0.2ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-22 09:00:00.000753', "conflicting_placements_array" = 'not_found,video' WHERE "advert_selector_placements"."id" = 718799085
67541
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
67542
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-22 09:00:00.002271', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 405688915
67543
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
67544
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."name" = 'not_found' LIMIT 1
67545
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."name" = 'video' LIMIT 1
67546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67547
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
67548
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67549
+  (0.1ms) rollback transaction
67550
+  (0.0ms) begin transaction
67551
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67552
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67553
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67554
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
67555
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67556
+  (0.1ms) rollback transaction
67557
+  (0.1ms) begin transaction
67558
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67559
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67560
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67561
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
67562
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67563
+  (0.1ms) rollback transaction
67564
+  (0.0ms) begin transaction
67565
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67566
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67567
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67568
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
67569
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67570
+  (0.1ms) rollback transaction
67571
+  (0.0ms) begin transaction
67572
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67573
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67574
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67575
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67576
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements" 
67577
+ Processing by AdvertSelector::PlacementsController#create as HTML
67578
+ Parameters: {"placement"=>{"name"=>"new placement"}}
67579
+  (0.0ms) SAVEPOINT active_record_1
67580
+ SQL (0.5ms) INSERT INTO "advert_selector_placements" ("conflicting_placements_array", "created_at", "name", "only_once_per_session", "updated_at") VALUES (?, ?, ?, ?, ?) [["conflicting_placements_array", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "new placement"], ["only_once_per_session", nil], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67582
+ Redirected to http://test.host/advert_selector/placements/1019730478
67583
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
67584
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements" 
67585
+  (0.1ms) rollback transaction
67586
+  (0.0ms) begin transaction
67587
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67588
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67589
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67590
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67591
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
67592
+ Processing by AdvertSelector::PlacementsController#destroy as HTML
67593
+ Parameters: {"id"=>"405688915"}
67594
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
67595
+  (0.0ms) SAVEPOINT active_record_1
67596
+ SQL (0.2ms) DELETE FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? [["id", 405688915]]
67597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67598
+ Redirected to http://test.host/advert_selector/placements
67599
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
67600
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements" 
67601
+  (0.1ms) rollback transaction
67602
+  (0.0ms) begin transaction
67603
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67604
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67605
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67606
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67607
+ Processing by AdvertSelector::PlacementsController#edit as HTML
67608
+ Parameters: {"id"=>"405688915"}
67609
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
67610
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
67611
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
67612
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/placements/_form.html.erb (5.7ms)
67613
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.011318') ORDER BY priority desc LIMIT 10
67614
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67615
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67616
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67617
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67618
+ Completed 200 OK in 15ms (Views: 13.3ms | ActiveRecord: 0.6ms)
67619
+  (0.1ms) rollback transaction
67620
+  (0.0ms) begin transaction
67621
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67622
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67623
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67624
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67625
+ Processing by AdvertSelector::PlacementsController#index as HTML
67626
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
67627
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.006463') ORDER BY priority desc LIMIT 10
67628
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67629
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67630
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67631
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67632
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.5ms)
67633
+  (0.1ms) rollback transaction
67634
+  (0.0ms) begin transaction
67635
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67636
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67637
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67638
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67639
+ Processing by AdvertSelector::PlacementsController#new as HTML
67640
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = '') LIMIT 1
67641
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/placements/_form.html.erb (4.3ms)
67642
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.008562') ORDER BY priority desc LIMIT 10
67643
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67644
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67645
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67646
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67647
+ Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.5ms)
67648
+  (0.1ms) rollback transaction
67649
+  (0.0ms) begin transaction
67650
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67651
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67652
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67653
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67654
+ Processing by AdvertSelector::PlacementsController#show as HTML
67655
+ Parameters: {"id"=>"405688915"}
67656
+ Redirected to http://test.host/advert_selector/placements/405688915/edit
67657
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
67658
+  (0.1ms) rollback transaction
67659
+  (0.1ms) begin transaction
67660
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67661
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67662
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67663
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
67664
+ Processing by AdvertSelector::PlacementsController#update as HTML
67665
+ Parameters: {"id"=>"405688915", "placement"=>{"name"=>"Leaderboard"}}
67666
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
67667
+  (0.0ms) SAVEPOINT active_record_1
67668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67669
+ Redirected to http://test.host/advert_selector/placements/405688915
67670
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
67671
+  (0.1ms) rollback transaction
67672
+  (0.0ms) begin transaction
67673
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67674
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67675
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67676
+  (0.1ms) rollback transaction
67677
+  (0.0ms) begin transaction
67678
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67679
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67680
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67681
+  (0.0ms) SAVEPOINT active_record_1
67682
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-22 09:00:00.000440' WHERE "advert_selector_banners"."id" = 814558298
67683
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67685
+  (0.0ms) SAVEPOINT active_record_1
67686
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.002314' WHERE "advert_selector_banners"."id" = 394627963
67687
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67689
+
67690
+
67691
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
67692
+ Processing by ExamplesController#index as HTML
67693
+ [AdvertSelector] AdvertSelection initialized
67694
+ [AdvertSelector] AdvertSelection fetching banners and placements
67695
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.007645' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.007842' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67696
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67697
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67698
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67699
+ [AdvertSelector] AdvertSelection finished
67700
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.4ms)
67701
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67702
+  (0.0ms) SAVEPOINT active_record_1
67703
+ SQL (0.2ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
67704
+ SQL (0.2ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "always_false"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67706
+
67707
+
67708
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
67709
+ Processing by ExamplesController#index as HTML
67710
+ [AdvertSelector] AdvertSelection initialized
67711
+ [AdvertSelector] AdvertSelection fetching banners and placements
67712
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.021035' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.021200' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67713
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67714
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67715
+ [AdvertSelector] AdvertSelection finished
67716
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.4ms)
67717
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67718
+  (0.1ms) rollback transaction
67719
+  (0.0ms) begin transaction
67720
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67721
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67722
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67723
+  (0.1ms) SAVEPOINT active_record_1
67724
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-22 09:00:00.000476' WHERE "advert_selector_banners"."id" = 814558298
67725
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67726
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67727
+  (0.0ms) SAVEPOINT active_record_1
67728
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.002376' WHERE "advert_selector_banners"."id" = 394627963
67729
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67730
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67731
+  (0.0ms) SAVEPOINT active_record_1
67732
+ SQL (0.2ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
67733
+ SQL (0.2ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "raise_error"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
67734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67735
+
67736
+
67737
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
67738
+ Processing by ExamplesController#index as HTML
67739
+ [AdvertSelector] AdvertSelection initialized
67740
+ [AdvertSelector] AdvertSelection fetching banners and placements
67741
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.004240' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.004433' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67742
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67743
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67744
+ [AdvertSelector] Error with banner Coke in placement Leaderboard.
67745
+ 2012-10-22T12:00:00+03:00 - http://www.example.com/ - {"action"=>"index", "controller"=>"examples"}
67746
+ #<ZeroDivisionError: divided by 0>
67747
+
67748
+ /home/ohu/koodi/gems/advert_selector/test/dummy/app/helpers/advert_selector_helper.rb:9:in `/'
67749
+ /home/ohu/koodi/gems/advert_selector/test/dummy/app/helpers/advert_selector_helper.rb:9:in `advert_selector_raise_error'
67750
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:53:in `send'
67751
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:53:in `advert_selector_banner_try'
67752
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `each'
67753
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `send'
67754
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
67755
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:49:in `advert_selector_banner_try'
67756
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:20:in `advert_selector_initialize'
67757
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each'
67758
+ [AdvertSelector] AdvertSelection finished
67759
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.4ms)
67760
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67761
+
67762
+
67763
+ Started GET "/advert_selector/placements" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
67764
+ Processing by AdvertSelector::PlacementsController#index as HTML
67765
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
67766
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.020995') ORDER BY priority desc LIMIT 10
67767
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67768
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67769
+ CACHE (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
67770
+ CACHE (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
67771
+ Completed 200 OK in 16ms (Views: 14.8ms | ActiveRecord: 0.4ms)
67772
+  (0.1ms) rollback transaction
67773
+  (0.0ms) begin transaction
67774
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67775
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67776
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67777
+  (0.0ms) SAVEPOINT active_record_1
67778
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-22 09:00:00.000396' WHERE "advert_selector_banners"."id" = 814558298
67779
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67781
+  (0.0ms) SAVEPOINT active_record_1
67782
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.002319' WHERE "advert_selector_banners"."id" = 394627963
67783
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67785
+  (0.0ms) SAVEPOINT active_record_1
67786
+  (0.1ms) UPDATE "advert_selector_banners" SET "frequency" = 2, "updated_at" = '2012-10-22 09:00:00.000272' WHERE "advert_selector_banners"."id" = 814558298
67787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67788
+
67789
+
67790
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
67791
+ Processing by ExamplesController#index as HTML
67792
+ [AdvertSelector] AdvertSelection initialized
67793
+ [AdvertSelector] AdvertSelection fetching banners and placements
67794
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.003144' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.003333' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67795
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67796
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67797
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67798
+ [AdvertSelector] AdvertSelection finished
67799
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
67800
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67801
+
67802
+
67803
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67804
+ Processing by ExamplesController#index as HTML
67805
+ [AdvertSelector] AdvertSelection initialized
67806
+ [AdvertSelector] AdvertSelection fetching banners and placements
67807
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.016652' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.016831' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67808
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67809
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67810
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67811
+ [AdvertSelector] AdvertSelection finished
67812
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)
67813
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67814
+
67815
+
67816
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67817
+ Processing by ExamplesController#index as HTML
67818
+ [AdvertSelector] AdvertSelection initialized
67819
+ [AdvertSelector] AdvertSelection finished
67820
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
67821
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67822
+  (0.1ms) rollback transaction
67823
+  (0.0ms) begin transaction
67824
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67825
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67826
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67827
+  (0.0ms) SAVEPOINT active_record_1
67828
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000389' WHERE "advert_selector_banners"."id" = 814558298
67829
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67831
+  (0.0ms) SAVEPOINT active_record_1
67832
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002297' WHERE "advert_selector_banners"."id" = 394627963
67833
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67835
+
67836
+
67837
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67838
+ Processing by ExamplesController#index as HTML
67839
+ [AdvertSelector] AdvertSelection initialized
67840
+ [AdvertSelector] AdvertSelection fetching banners and placements
67841
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.002221' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.002394' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67842
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67843
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67844
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67845
+ [AdvertSelector] AdvertSelection finished
67846
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
67847
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67848
+
67849
+
67850
+ Started GET "/?advert_selector_force=207249520" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67851
+ Processing by ExamplesController#index as HTML
67852
+ Parameters: {"advert_selector_force"=>"207249520"}
67853
+ [AdvertSelector] AdvertSelection initialized
67854
+ [AdvertSelector] AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = 207249520 LIMIT 1
67855
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67856
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
67857
+ [AdvertSelector] ForceShowing banner parade_banner in placement Parade
67858
+ [AdvertSelector] AdvertSelection fetching banners and placements
67859
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.016113' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.016297' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67860
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67861
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67862
+ [AdvertSelector] AdvertSelection finished
67863
+ Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.6ms)
67864
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67865
+  (0.1ms) rollback transaction
67866
+  (0.0ms) begin transaction
67867
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67868
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67869
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67870
+  (0.0ms) SAVEPOINT active_record_1
67871
+  (0.3ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000443' WHERE "advert_selector_banners"."id" = 814558298
67872
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67873
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67874
+  (0.0ms) SAVEPOINT active_record_1
67875
+  (0.2ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002956' WHERE "advert_selector_banners"."id" = 394627963
67876
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67878
+  (0.1ms) SAVEPOINT active_record_1
67879
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-25 09:00:00.000651' WHERE "advert_selector_banners"."id" = 207249520
67880
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
67881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67882
+
67883
+
67884
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67885
+ Processing by ExamplesController#index as HTML
67886
+ [AdvertSelector] AdvertSelection initialized
67887
+ [AdvertSelector] AdvertSelection fetching banners and placements
67888
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.004927' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.005120' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67889
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67890
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67891
+ [AdvertSelector] Showing banner parade_banner in placement Parade
67892
+ [AdvertSelector] AdvertSelection finished
67893
+ Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.4ms)
67894
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67895
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67896
+
67897
+
67898
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67899
+ Processing by ExamplesController#index as HTML
67900
+ [AdvertSelector] AdvertSelection initialized
67901
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67902
+ [AdvertSelector] AdvertSelection finished
67903
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
67904
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67905
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67906
+  (0.1ms) rollback transaction
67907
+  (0.0ms) begin transaction
67908
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67909
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67910
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67911
+  (0.0ms) SAVEPOINT active_record_1
67912
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000427' WHERE "advert_selector_banners"."id" = 814558298
67913
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67914
+  (0.3ms) RELEASE SAVEPOINT active_record_1
67915
+  (0.0ms) SAVEPOINT active_record_1
67916
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002820' WHERE "advert_selector_banners"."id" = 394627963
67917
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67919
+  (0.0ms) SAVEPOINT active_record_1
67920
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-25 09:00:00.000447' WHERE "advert_selector_banners"."id" = 207249520
67921
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
67922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67923
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
67924
+  (0.0ms) SAVEPOINT active_record_1
67925
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.002586', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 718799085
67926
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
67927
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.003778', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 405688915
67928
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
67929
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'video') LIMIT 1
67930
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.005318', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 1019730477
67931
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
67932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67933
+
67934
+
67935
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67936
+ Processing by ExamplesController#index as HTML
67937
+ [AdvertSelector] AdvertSelection initialized
67938
+ [AdvertSelector] AdvertSelection fetching banners and placements
67939
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.008708' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.008882' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
67940
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67941
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67942
+ [AdvertSelector] Showing banner parade_banner in placement Parade
67943
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67944
+ [AdvertSelector] AdvertSelection finished
67945
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.4ms)
67946
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67947
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67948
+  (0.1ms) rollback transaction
67949
+  (0.0ms) begin transaction
67950
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67951
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67952
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67953
+  (0.0ms) SAVEPOINT active_record_1
67954
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000412' WHERE "advert_selector_banners"."id" = 814558298
67955
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67957
+  (0.0ms) SAVEPOINT active_record_1
67958
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002460' WHERE "advert_selector_banners"."id" = 394627963
67959
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
67960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67961
+
67962
+
67963
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67964
+ Processing by ExamplesController#index as HTML
67965
+ [AdvertSelector] AdvertSelection initialized
67966
+ [AdvertSelector] AdvertSelection fetching banners and placements
67967
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.000226' OR end_time IS NULL) ORDER BY priority desc
67968
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
67969
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
67970
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67971
+ [AdvertSelector] AdvertSelection finished
67972
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.3ms)
67973
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
67974
+
67975
+
67976
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
67977
+ Processing by ExamplesController#index as HTML
67978
+ [AdvertSelector] AdvertSelection initialized
67979
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67980
+ [AdvertSelector] AdvertSelection finished
67981
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
67982
+
67983
+
67984
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:15:00 +0300 2012
67985
+ Processing by ExamplesController#index as HTML
67986
+ [AdvertSelector] AdvertSelection initialized
67987
+ [AdvertSelector] AdvertSelection fetching banners and placements
67988
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
67989
+ [AdvertSelector] AdvertSelection finished
67990
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
67991
+  (0.1ms) rollback transaction
67992
+  (0.0ms) begin transaction
67993
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
67994
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
67995
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
67996
+  (0.0ms) SAVEPOINT active_record_1
67997
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000378' WHERE "advert_selector_banners"."id" = 814558298
67998
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
67999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68000
+  (0.0ms) SAVEPOINT active_record_1
68001
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002287' WHERE "advert_selector_banners"."id" = 394627963
68002
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68003
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68004
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68005
+  (0.0ms) SAVEPOINT active_record_1
68006
+  (0.1ms) UPDATE "advert_selector_placements" SET "only_once_per_session" = 't', "updated_at" = '2012-10-25 09:00:00.001148' WHERE "advert_selector_placements"."id" = 405688915
68007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68008
+
68009
+
68010
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68011
+ Processing by ExamplesController#index as HTML
68012
+ [AdvertSelector] AdvertSelection initialized
68013
+ [AdvertSelector] AdvertSelection fetching banners and placements
68014
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.004355' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.004561' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68015
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68016
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68017
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68018
+ [AdvertSelector] AdvertSelection finished
68019
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.4ms)
68020
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68021
+
68022
+
68023
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68024
+ Processing by ExamplesController#index as HTML
68025
+ [AdvertSelector] AdvertSelection initialized
68026
+ [AdvertSelector] AdvertSelection finished
68027
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
68028
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68029
+  (0.1ms) rollback transaction
68030
+  (0.1ms) begin transaction
68031
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68032
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68033
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68034
+ Processing by ExamplesController#index as HTML
68035
+ [AdvertSelector] AdvertSelection initialized
68036
+ [AdvertSelector] AdvertSelection fetching banners and placements
68037
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.002334' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.002521' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68038
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68039
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68040
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68041
+ [AdvertSelector] AdvertSelection finished
68042
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.4ms)
68043
+  (0.1ms) rollback transaction
68044
+ Connecting to database specified by database.yml
68045
+  (0.1ms) begin transaction
68046
+ Fixture Delete (0.3ms) DELETE FROM "advert_selector_banners"
68047
+ Fixture Insert (0.2ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "running_view_count", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Coke banner', 'Coke', 405688915, '2012-10-22 15:16:00', 100, '2012-10-27 00:00:00', 't', '2012-10-22 15:16:00', 50, 814558298, 1000, 'f', 0, '2012-10-17 00:00:00')
68048
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Pepsi banner', 'Pepsi', 405688915, '2012-10-22 15:16:00', '2012-11-01 00:00:00', 't', '2012-10-22 15:16:00', 100, 394627963, 1000, 't', 0, '2012-10-22 00:00:00')
68049
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_banners" ("name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('parade_banner', 718799085, '2012-10-22 15:16:00', '2012-11-01 00:00:00', 'f', '2012-10-22 15:16:00', 1000, 207249520, 1000, 't', 1, '2012-10-22 00:00:00')
68050
+ Fixture Delete (0.2ms) DELETE FROM "advert_selector_helper_items"
68051
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_leaderboard', 2, '2012-10-22 15:16:00', '2012-10-22 15:16:00', 960656439, 't', 394627963, '<img src=''pepsi_banner''/>')
68052
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("position", "name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES (1, 'banner_leaderboard', '2012-10-22 15:16:00', '2012-10-22 15:16:00', 929640376, 't', 814558298, '<img src=''coke_banner''/>')
68053
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_parade', 1, '2012-10-22 15:16:00', '2012-10-22 15:16:00', 281932184, 't', 207249520, '<img src=''banner_parade''/>')
68054
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('request_params_include?', '2012-10-22 15:16:00', '2012-10-22 15:16:00', 435138789, 'f', 394627963, 'pepsi=true')
68055
+ Fixture Delete (0.1ms) DELETE FROM "advert_selector_placements"
68056
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Parade', '2012-10-22 15:16:00', '2012-10-22 15:16:00', 'leaderboard,video', 718799085)
68057
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "only_once_per_session", "id") VALUES ('Video', '2012-10-22 15:16:00', '2012-10-22 15:16:00', 'parade', 't', 1019730477)
68058
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Leaderboard', '2012-10-22 15:16:00', '2012-10-22 15:16:00', 'parade', 405688915)
68059
+  (41.0ms) commit transaction
68060
+  (0.1ms) begin transaction
68061
+ AdvertSelector::Banner Load (0.6ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68062
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68063
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68064
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items"
68065
+  (0.1ms) SAVEPOINT active_record_1
68066
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE ("advert_selector_helper_items"."banner_id" = 814558298) ORDER BY advert_selector_helper_items.position DESC LIMIT 1
68067
+ SQL (0.5ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", nil], ["position", 2], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68068
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 10)
68069
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", true], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "content_for_invalid"], ["position", 10], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68070
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
68071
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "some_limit_helper_here"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68072
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68073
+ SQL (0.1ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656440]]
68074
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position > 3)
68075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68076
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68077
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_helper_items" 
68078
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position LIMIT 1
68079
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position DESC LIMIT 1
68080
+  (0.1ms) rollback transaction
68081
+  (0.0ms) begin transaction
68082
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68083
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68084
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68085
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000094' OR end_time IS NULL)
68086
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000865' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.000976' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
68087
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.001814' OR end_time IS NULL)
68088
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.002456' OR end_time IS NULL) AND (start_time < '2011-10-22 10:00:00.002564' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
68089
+  (0.0ms) rollback transaction
68090
+  (0.0ms) begin transaction
68091
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68092
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68093
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68094
+  (0.0ms) rollback transaction
68095
+  (0.0ms) begin transaction
68096
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68097
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68098
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68099
+  (0.0ms) SAVEPOINT active_record_1
68100
+  (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.000789' WHERE "advert_selector_banners"."id" = 814558298
68101
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68102
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68103
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68104
+  (0.0ms) SAVEPOINT active_record_1
68105
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 551, "updated_at" = '2012-10-22 09:00:00.005922' WHERE "advert_selector_banners"."id" = 814558298
68106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68107
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68108
+  (0.1ms) rollback transaction
68109
+  (0.0ms) begin transaction
68110
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68111
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68112
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68113
+  (0.0ms) SAVEPOINT active_record_1
68114
+  (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.000809', "target_view_count" = 10 WHERE "advert_selector_banners"."id" = 814558298
68115
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68117
+  (0.0ms) SAVEPOINT active_record_1
68118
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 10, "updated_at" = '2012-10-22 09:00:00.004122' WHERE "advert_selector_banners"."id" = 814558298
68119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68120
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68121
+  (0.1ms) rollback transaction
68122
+  (0.0ms) begin transaction
68123
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68124
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68125
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68126
+  (0.0ms) SAVEPOINT active_record_1
68127
+  (0.2ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.000358' WHERE "advert_selector_banners"."id" = 814558298
68128
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68130
+  (0.0ms) SAVEPOINT active_record_1
68131
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-22 09:00:00.002241' WHERE "advert_selector_banners"."id" = 814558298
68132
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68133
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68134
+  (0.1ms) rollback transaction
68135
+  (0.0ms) begin transaction
68136
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68137
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68138
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68139
+  (0.0ms) SAVEPOINT active_record_1
68140
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000724', "start_time" = '2012-10-22 10:00:00.000316' WHERE "advert_selector_banners"."id" = 814558298
68141
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68143
+  (0.0ms) SAVEPOINT active_record_1
68144
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002878', "start_time" = '2012-10-22 07:00:00.002467', "end_time" = '2012-10-22 08:00:00.002542' WHERE "advert_selector_banners"."id" = 814558298
68145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68146
+  (0.0ms) SAVEPOINT active_record_1
68147
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.004233', "start_time" = NULL, "end_time" = '2012-10-22 10:00:00.003937' WHERE "advert_selector_banners"."id" = 814558298
68148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68149
+  (0.1ms) rollback transaction
68150
+  (0.0ms) begin transaction
68151
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68152
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68153
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68154
+  (0.0ms) SAVEPOINT active_record_1
68155
+  (0.3ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000751', "start_time" = '2012-10-21 21:00:00.000000', "target_view_count" = 100, "end_time" = '2012-11-01 00:00:00.000000' WHERE "advert_selector_banners"."id" = 814558298
68156
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68158
+  (0.0ms) SAVEPOINT active_record_1
68159
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.002626' WHERE "advert_selector_banners"."id" = 814558298
68160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68161
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68162
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68163
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68164
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68165
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68166
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68167
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68168
+  (0.0ms) SAVEPOINT active_record_1
68169
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 16:00:00.001589', "start_time" = '2012-10-22 15:00:00.000812' WHERE "advert_selector_banners"."id" = 814558298
68170
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68172
+  (0.1ms) rollback transaction
68173
+ Connecting to database specified by database.yml
68174
+  (0.1ms) begin transaction
68175
+ Fixture Delete (0.4ms) DELETE FROM "advert_selector_banners"
68176
+ Fixture Insert (0.2ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "running_view_count", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Coke banner', 'Coke', 405688915, '2012-10-22 15:16:09', 100, '2012-10-27 00:00:00', 't', '2012-10-22 15:16:09', 50, 814558298, 1000, 'f', 0, '2012-10-17 00:00:00')
68177
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Pepsi banner', 'Pepsi', 405688915, '2012-10-22 15:16:09', '2012-11-01 00:00:00', 't', '2012-10-22 15:16:09', 100, 394627963, 1000, 't', 0, '2012-10-22 00:00:00')
68178
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_banners" ("name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('parade_banner', 718799085, '2012-10-22 15:16:09', '2012-11-01 00:00:00', 'f', '2012-10-22 15:16:09', 1000, 207249520, 1000, 't', 1, '2012-10-22 00:00:00')
68179
+ Fixture Delete (0.2ms) DELETE FROM "advert_selector_helper_items"
68180
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_leaderboard', 2, '2012-10-22 15:16:09', '2012-10-22 15:16:09', 960656439, 't', 394627963, '<img src=''pepsi_banner''/>')
68181
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("position", "name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES (1, 'banner_leaderboard', '2012-10-22 15:16:09', '2012-10-22 15:16:09', 929640376, 't', 814558298, '<img src=''coke_banner''/>')
68182
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_parade', 1, '2012-10-22 15:16:09', '2012-10-22 15:16:09', 281932184, 't', 207249520, '<img src=''banner_parade''/>')
68183
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('request_params_include?', '2012-10-22 15:16:09', '2012-10-22 15:16:09', 435138789, 'f', 394627963, 'pepsi=true')
68184
+ Fixture Delete (0.1ms) DELETE FROM "advert_selector_placements"
68185
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Parade', '2012-10-22 15:16:09', '2012-10-22 15:16:09', 'leaderboard,video', 718799085)
68186
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "only_once_per_session", "id") VALUES ('Video', '2012-10-22 15:16:09', '2012-10-22 15:16:09', 'parade', 't', 1019730477)
68187
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Leaderboard', '2012-10-22 15:16:09', '2012-10-22 15:16:09', 'parade', 405688915)
68188
+  (55.3ms) commit transaction
68189
+  (0.1ms) begin transaction
68190
+ AdvertSelector::Banner Load (0.6ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68191
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68192
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68193
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items"
68194
+  (0.1ms) SAVEPOINT active_record_1
68195
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE ("advert_selector_helper_items"."banner_id" = 814558298) ORDER BY advert_selector_helper_items.position DESC LIMIT 1
68196
+ SQL (0.5ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", nil], ["position", 2], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68197
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 10)
68198
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", true], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "content_for_invalid"], ["position", 10], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68199
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
68200
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "some_limit_helper_here"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68201
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68202
+ SQL (0.1ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656440]]
68203
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position > 3)
68204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68205
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68206
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_helper_items" 
68207
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position LIMIT 1
68208
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position DESC LIMIT 1
68209
+  (0.1ms) rollback transaction
68210
+  (0.0ms) begin transaction
68211
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68212
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68213
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68214
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000081' OR end_time IS NULL)
68215
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000831' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.000942' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
68216
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.001780' OR end_time IS NULL)
68217
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.002421' OR end_time IS NULL) AND (start_time < '2011-10-22 10:00:00.002528' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
68218
+  (0.0ms) rollback transaction
68219
+  (0.0ms) begin transaction
68220
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68221
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68222
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68223
+  (0.0ms) rollback transaction
68224
+  (0.0ms) begin transaction
68225
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68226
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68227
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68228
+  (0.0ms) SAVEPOINT active_record_1
68229
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000859', "running_view_count" = 0 WHERE "advert_selector_banners"."id" = 814558298
68230
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68232
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68233
+  (0.0ms) SAVEPOINT active_record_1
68234
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.006277', "running_view_count" = 551 WHERE "advert_selector_banners"."id" = 814558298
68235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68236
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68237
+  (0.1ms) rollback transaction
68238
+  (0.0ms) begin transaction
68239
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68240
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68241
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68242
+  (0.0ms) SAVEPOINT active_record_1
68243
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000786', "running_view_count" = 0, "target_view_count" = 10 WHERE "advert_selector_banners"."id" = 814558298
68244
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68245
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68246
+  (0.0ms) SAVEPOINT active_record_1
68247
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.004201', "running_view_count" = 10 WHERE "advert_selector_banners"."id" = 814558298
68248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68249
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68250
+  (0.1ms) rollback transaction
68251
+  (0.0ms) begin transaction
68252
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68253
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68254
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68255
+  (0.0ms) SAVEPOINT active_record_1
68256
+  (0.3ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000396', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 814558298
68257
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68259
+  (0.0ms) SAVEPOINT active_record_1
68260
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002371', "confirmed" = 't' WHERE "advert_selector_banners"."id" = 814558298
68261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68262
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68263
+  (0.1ms) rollback transaction
68264
+  (0.0ms) begin transaction
68265
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68266
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68267
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68268
+  (0.0ms) SAVEPOINT active_record_1
68269
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000731', "start_time" = '2012-10-22 10:00:00.000336' WHERE "advert_selector_banners"."id" = 814558298
68270
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68272
+  (0.0ms) SAVEPOINT active_record_1
68273
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002782', "end_time" = '2012-10-22 08:00:00.002458', "start_time" = '2012-10-22 07:00:00.002387' WHERE "advert_selector_banners"."id" = 814558298
68274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68275
+  (0.0ms) SAVEPOINT active_record_1
68276
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.004102', "end_time" = '2012-10-22 10:00:00.003795', "start_time" = NULL WHERE "advert_selector_banners"."id" = 814558298
68277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68278
+  (0.1ms) rollback transaction
68279
+  (0.0ms) begin transaction
68280
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68281
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68282
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68283
+  (0.0ms) SAVEPOINT active_record_1
68284
+  (0.4ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000860', "end_time" = '2012-11-01 00:00:00.000000', "target_view_count" = 100, "start_time" = '2012-10-21 21:00:00.000000' WHERE "advert_selector_banners"."id" = 814558298
68285
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68287
+  (0.0ms) SAVEPOINT active_record_1
68288
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002868', "running_view_count" = 0 WHERE "advert_selector_banners"."id" = 814558298
68289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68290
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68291
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68292
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68293
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68294
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68295
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68296
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68297
+  (0.1ms) SAVEPOINT active_record_1
68298
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 16:00:00.002524', "start_time" = '2012-10-22 15:00:00.001311' WHERE "advert_selector_banners"."id" = 814558298
68299
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68301
+  (0.1ms) rollback transaction
68302
+ Connecting to database specified by database.yml
68303
+  (0.1ms) begin transaction
68304
+ Fixture Delete (0.3ms) DELETE FROM "advert_selector_banners"
68305
+ Fixture Insert (0.2ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "running_view_count", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Coke banner', 'Coke', 405688915, '2012-10-22 15:16:30', 100, '2012-10-27 00:00:00', 't', '2012-10-22 15:16:30', 50, 814558298, 1000, 'f', 0, '2012-10-17 00:00:00')
68306
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Pepsi banner', 'Pepsi', 405688915, '2012-10-22 15:16:30', '2012-11-01 00:00:00', 't', '2012-10-22 15:16:30', 100, 394627963, 1000, 't', 0, '2012-10-22 00:00:00')
68307
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_banners" ("name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('parade_banner', 718799085, '2012-10-22 15:16:30', '2012-11-01 00:00:00', 'f', '2012-10-22 15:16:30', 1000, 207249520, 1000, 't', 1, '2012-10-22 00:00:00')
68308
+ Fixture Delete (0.2ms) DELETE FROM "advert_selector_helper_items"
68309
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_leaderboard', 2, '2012-10-22 15:16:30', '2012-10-22 15:16:30', 960656439, 't', 394627963, '<img src=''pepsi_banner''/>')
68310
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("position", "name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES (1, 'banner_leaderboard', '2012-10-22 15:16:30', '2012-10-22 15:16:30', 929640376, 't', 814558298, '<img src=''coke_banner''/>')
68311
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_parade', 1, '2012-10-22 15:16:30', '2012-10-22 15:16:30', 281932184, 't', 207249520, '<img src=''banner_parade''/>')
68312
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('request_params_include?', '2012-10-22 15:16:30', '2012-10-22 15:16:30', 435138789, 'f', 394627963, 'pepsi=true')
68313
+ Fixture Delete (0.1ms) DELETE FROM "advert_selector_placements"
68314
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Parade', '2012-10-22 15:16:30', '2012-10-22 15:16:30', 'leaderboard,video', 718799085)
68315
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "only_once_per_session", "id") VALUES ('Video', '2012-10-22 15:16:30', '2012-10-22 15:16:30', 'parade', 't', 1019730477)
68316
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Leaderboard', '2012-10-22 15:16:30', '2012-10-22 15:16:30', 'parade', 405688915)
68317
+  (44.4ms) commit transaction
68318
+  (0.1ms) begin transaction
68319
+ AdvertSelector::Banner Load (0.6ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68320
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68321
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68322
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items"
68323
+  (0.1ms) SAVEPOINT active_record_1
68324
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE ("advert_selector_helper_items"."banner_id" = 814558298) ORDER BY advert_selector_helper_items.position DESC LIMIT 1
68325
+ SQL (0.5ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", nil], ["position", 2], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68326
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 10)
68327
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", true], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "content_for_invalid"], ["position", 10], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68328
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
68329
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "some_limit_helper_here"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68330
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68331
+ SQL (0.1ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656440]]
68332
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position > 3)
68333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68334
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68335
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_helper_items" 
68336
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position LIMIT 1
68337
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position DESC LIMIT 1
68338
+  (0.1ms) rollback transaction
68339
+  (0.0ms) begin transaction
68340
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68341
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68342
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68343
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000070' OR end_time IS NULL)
68344
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000884' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.000998' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
68345
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.001857' OR end_time IS NULL)
68346
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.002541' OR end_time IS NULL) AND (start_time < '2011-10-22 10:00:00.002660' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
68347
+  (0.1ms) rollback transaction
68348
+  (0.0ms) begin transaction
68349
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68350
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68351
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68352
+  (0.1ms) rollback transaction
68353
+  (0.0ms) begin transaction
68354
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68355
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68356
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68357
+  (0.0ms) SAVEPOINT active_record_1
68358
+  (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.000850' WHERE "advert_selector_banners"."id" = 814558298
68359
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68361
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68362
+  (0.0ms) SAVEPOINT active_record_1
68363
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 551, "updated_at" = '2012-10-22 09:00:00.006428' WHERE "advert_selector_banners"."id" = 814558298
68364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68365
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68366
+  (0.1ms) rollback transaction
68367
+  (0.0ms) begin transaction
68368
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68369
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68370
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68371
+  (0.0ms) SAVEPOINT active_record_1
68372
+  (0.2ms) UPDATE "advert_selector_banners" SET "target_view_count" = 10, "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.000898' WHERE "advert_selector_banners"."id" = 814558298
68373
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68375
+  (0.0ms) SAVEPOINT active_record_1
68376
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 10, "updated_at" = '2012-10-22 09:00:00.004420' WHERE "advert_selector_banners"."id" = 814558298
68377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68378
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68379
+  (0.1ms) rollback transaction
68380
+  (0.0ms) begin transaction
68381
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68382
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68383
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68384
+  (0.0ms) SAVEPOINT active_record_1
68385
+  (0.2ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.000397' WHERE "advert_selector_banners"."id" = 814558298
68386
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68388
+  (0.0ms) SAVEPOINT active_record_1
68389
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-22 09:00:00.002438' WHERE "advert_selector_banners"."id" = 814558298
68390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68391
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68392
+  (0.1ms) rollback transaction
68393
+  (0.0ms) begin transaction
68394
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68395
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68396
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68397
+  (0.0ms) SAVEPOINT active_record_1
68398
+  (0.2ms) UPDATE "advert_selector_banners" SET "start_time" = '2012-10-22 10:00:00.000375', "updated_at" = '2012-10-22 09:00:00.000789' WHERE "advert_selector_banners"."id" = 814558298
68399
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68401
+  (0.0ms) SAVEPOINT active_record_1
68402
+  (0.2ms) UPDATE "advert_selector_banners" SET "start_time" = '2012-10-22 07:00:00.002446', "updated_at" = '2012-10-22 09:00:00.002851', "end_time" = '2012-10-22 08:00:00.002524' WHERE "advert_selector_banners"."id" = 814558298
68403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68404
+  (0.0ms) SAVEPOINT active_record_1
68405
+  (0.1ms) UPDATE "advert_selector_banners" SET "start_time" = NULL, "updated_at" = '2012-10-22 09:00:00.004231', "end_time" = '2012-10-22 10:00:00.003917' WHERE "advert_selector_banners"."id" = 814558298
68406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68407
+  (0.1ms) rollback transaction
68408
+  (0.0ms) begin transaction
68409
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68410
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68411
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68412
+  (0.0ms) SAVEPOINT active_record_1
68413
+  (0.3ms) UPDATE "advert_selector_banners" SET "target_view_count" = 100, "start_time" = '2012-10-21 21:00:00.000000', "updated_at" = '2012-10-22 09:00:00.000807', "end_time" = '2012-11-01 00:00:00.000000' WHERE "advert_selector_banners"."id" = 814558298
68414
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68416
+  (0.0ms) SAVEPOINT active_record_1
68417
+  (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 0, "updated_at" = '2012-10-22 09:00:00.002804' WHERE "advert_selector_banners"."id" = 814558298
68418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68419
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68420
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68421
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68422
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68423
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68424
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68425
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68426
+  (0.0ms) SAVEPOINT active_record_1
68427
+  (0.1ms) UPDATE "advert_selector_banners" SET "start_time" = '2012-10-22 15:00:00.000781', "updated_at" = '2012-10-22 16:00:00.001538' WHERE "advert_selector_banners"."id" = 814558298
68428
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68429
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68430
+  (0.1ms) rollback transaction
68431
+  (0.0ms) begin transaction
68432
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68433
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68434
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68435
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" 
68436
+ Processing by AdvertSelector::BannersController#create as HTML
68437
+ Parameters: {"banner"=>{"comment"=>"Pepsi banner", "name"=>"Pepsi", "placement_id"=>"405688915", "end_time"=>"2012-11-01 00:00:00 UTC", "target_view_count"=>"1000", "frequency"=>"0", "start_time"=>"2012-10-22 00:00:00 UTC"}}
68438
+  (0.1ms) SAVEPOINT active_record_1
68439
+ SQL (0.6ms) INSERT INTO "advert_selector_banners" ("comment", "confirmed", "created_at", "end_time", "fast_mode", "frequency", "name", "placement_id", "priority", "running_view_count", "start_time", "target_view_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["comment", "Pepsi banner"], ["confirmed", false], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["end_time", Thu, 01 Nov 2012 00:00:00 UTC +00:00], ["fast_mode", false], ["frequency", 0], ["name", "Pepsi"], ["placement_id", 405688915], ["priority", 0], ["running_view_count", 0], ["start_time", Mon, 22 Oct 2012 00:00:00 UTC +00:00], ["target_view_count", 1000], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68440
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558299 ORDER BY position
68441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68442
+ Redirected to http://test.host/advert_selector/banners/814558299
68443
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
68444
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_banners"
68445
+  (0.1ms) rollback transaction
68446
+  (0.0ms) begin transaction
68447
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68448
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68449
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68450
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners"
68451
+ Processing by AdvertSelector::BannersController#destroy as HTML
68452
+ Parameters: {"id"=>"394627963"}
68453
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
68454
+  (0.1ms) SAVEPOINT active_record_1
68455
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68456
+ SQL (0.3ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 435138789]]
68457
+ SQL (0.0ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656439]]
68458
+ SQL (0.0ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 394627963 AND position > 2)
68459
+ SQL (0.2ms) DELETE FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? [["id", 394627963]]
68460
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68461
+ Redirected to http://test.host/advert_selector/banners
68462
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
68463
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_banners" 
68464
+  (0.1ms) rollback transaction
68465
+  (0.0ms) begin transaction
68466
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68467
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68468
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68469
+ Processing by AdvertSelector::BannersController#edit as HTML
68470
+ Parameters: {"id"=>"394627963"}
68471
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
68472
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68473
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963
68474
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68475
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/banners/_form.html.erb (44.2ms)
68476
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.056488') ORDER BY priority desc LIMIT 10
68477
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68478
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68479
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68480
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
68481
+ Completed 200 OK in 61ms (Views: 59.5ms | ActiveRecord: 0.8ms)
68482
+  (0.1ms) rollback transaction
68483
+  (0.0ms) begin transaction
68484
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68485
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68486
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68487
+ Processing by AdvertSelector::BannersController#index as HTML
68488
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" 
68489
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.007765') ORDER BY priority desc LIMIT 10
68490
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68491
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68492
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68493
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68494
+ Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.6ms)
68495
+  (0.1ms) rollback transaction
68496
+  (0.0ms) begin transaction
68497
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68498
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68499
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68500
+ Processing by AdvertSelector::BannersController#new as HTML
68501
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68502
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/banners/_form.html.erb (18.8ms)
68503
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.023467') ORDER BY priority desc LIMIT 10
68504
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68505
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68506
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68507
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
68508
+ Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.6ms)
68509
+  (0.1ms) rollback transaction
68510
+  (0.0ms) begin transaction
68511
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68512
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68513
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68514
+ Processing by AdvertSelector::BannersController#show as HTML
68515
+ Parameters: {"id"=>"394627963"}
68516
+ Redirected to http://test.host/advert_selector/banners/394627963/edit
68517
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
68518
+  (0.1ms) rollback transaction
68519
+  (0.0ms) begin transaction
68520
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68521
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68522
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68523
+ Processing by AdvertSelector::BannersController#update as HTML
68524
+ Parameters: {"banner"=>{"comment"=>"Pepsi banner"}, "id"=>"394627963"}
68525
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
68526
+  (0.0ms) SAVEPOINT active_record_1
68527
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68529
+ Redirected to http://test.host/advert_selector/banners/394627963
68530
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
68531
+  (0.1ms) rollback transaction
68532
+  (0.0ms) begin transaction
68533
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68534
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68535
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68536
+  (0.0ms) SAVEPOINT active_record_1
68537
+  (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 1, "updated_at" = '2012-10-22 09:00:00.001212' WHERE "advert_selector_banners"."id" = 394627963
68538
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68540
+ Processing by AdvertSelector::BannersController#update_running_view_count as HTML
68541
+ Parameters: {"banner"=>{"running_view_count"=>"99"}, "id"=>"394627963"}
68542
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
68543
+ SQL (0.1ms) UPDATE "advert_selector_banners" SET "running_view_count" = 99 WHERE "advert_selector_banners"."id" = 394627963
68544
+ SQL (0.4ms) UPDATE "advert_selector_banners" SET "running_view_count" = 99 WHERE "advert_selector_banners"."id" = 394627963
68545
+ Redirected to http://test.host/advert_selector/banners/394627963
68546
+ Completed 302 Found in 1117ms (ActiveRecord: 0.5ms)
68547
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68548
+  (0.1ms) rollback transaction
68549
+  (0.0ms) begin transaction
68550
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68551
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68552
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68553
+ Processing by AdvertSelector::MainController#index as HTML
68554
+ Filter chain halted as :admin_access_only rendered or redirected
68555
+ Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
68556
+  (0.1ms) rollback transaction
68557
+  (0.0ms) begin transaction
68558
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68559
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68560
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68561
+ Processing by AdvertSelector::MainController#clear_errors_log as HTML
68562
+ Redirected to http://test.host/advert_selector/
68563
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
68564
+  (0.1ms) rollback transaction
68565
+  (0.0ms) begin transaction
68566
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68567
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68568
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68569
+ Processing by AdvertSelector::MainController#index as HTML
68570
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.004074') ORDER BY priority desc LIMIT 10
68571
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68572
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68573
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68574
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68575
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.4ms)
68576
+  (0.1ms) rollback transaction
68577
+  (0.0ms) begin transaction
68578
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68579
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68580
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68581
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
68582
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68583
+  (0.1ms) rollback transaction
68584
+  (0.0ms) begin transaction
68585
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68586
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68587
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68588
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
68589
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68590
+  (0.0ms) SAVEPOINT active_record_1
68591
+  (0.2ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-22 09:00:00.000838', "conflicting_placements_array" = 'not_found,video' WHERE "advert_selector_placements"."id" = 718799085
68592
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
68593
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-22 09:00:00.002273', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 405688915
68594
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
68595
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."name" = 'not_found' LIMIT 1
68596
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."name" = 'video' LIMIT 1
68597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68598
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
68599
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68600
+  (0.1ms) rollback transaction
68601
+  (0.0ms) begin transaction
68602
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68603
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68604
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68605
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
68606
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68607
+  (0.1ms) rollback transaction
68608
+  (0.0ms) begin transaction
68609
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68610
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68611
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68612
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
68613
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68614
+  (0.1ms) rollback transaction
68615
+  (0.0ms) begin transaction
68616
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68617
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68618
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68619
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
68620
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68621
+  (0.1ms) rollback transaction
68622
+  (0.0ms) begin transaction
68623
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68624
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68625
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68626
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68627
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
68628
+ Processing by AdvertSelector::PlacementsController#create as HTML
68629
+ Parameters: {"placement"=>{"name"=>"new placement"}}
68630
+  (0.0ms) SAVEPOINT active_record_1
68631
+ SQL (0.5ms) INSERT INTO "advert_selector_placements" ("conflicting_placements_array", "created_at", "name", "only_once_per_session", "updated_at") VALUES (?, ?, ?, ?, ?) [["conflicting_placements_array", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "new placement"], ["only_once_per_session", nil], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68633
+ Redirected to http://test.host/advert_selector/placements/1019730478
68634
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
68635
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
68636
+  (0.1ms) rollback transaction
68637
+  (0.0ms) begin transaction
68638
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68639
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68640
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68641
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68642
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements" 
68643
+ Processing by AdvertSelector::PlacementsController#destroy as HTML
68644
+ Parameters: {"id"=>"405688915"}
68645
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
68646
+  (0.0ms) SAVEPOINT active_record_1
68647
+ SQL (0.2ms) DELETE FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? [["id", 405688915]]
68648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68649
+ Redirected to http://test.host/advert_selector/placements
68650
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
68651
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
68652
+  (0.1ms) rollback transaction
68653
+  (0.0ms) begin transaction
68654
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68655
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68656
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68657
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68658
+ Processing by AdvertSelector::PlacementsController#edit as HTML
68659
+ Parameters: {"id"=>"405688915"}
68660
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
68661
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
68662
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
68663
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/placements/_form.html.erb (6.2ms)
68664
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.011818') ORDER BY priority desc LIMIT 10
68665
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68666
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68667
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68668
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68669
+ Completed 200 OK in 15ms (Views: 13.8ms | ActiveRecord: 0.6ms)
68670
+  (0.1ms) rollback transaction
68671
+  (0.0ms) begin transaction
68672
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68673
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68674
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68675
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68676
+ Processing by AdvertSelector::PlacementsController#index as HTML
68677
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
68678
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.006164') ORDER BY priority desc LIMIT 10
68679
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68680
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68681
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68682
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68683
+ Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.5ms)
68684
+  (0.1ms) rollback transaction
68685
+  (0.0ms) begin transaction
68686
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68687
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68688
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68689
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68690
+ Processing by AdvertSelector::PlacementsController#new as HTML
68691
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = '') LIMIT 1
68692
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/placements/_form.html.erb (4.1ms)
68693
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.008171') ORDER BY priority desc LIMIT 10
68694
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68695
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68696
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68697
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68698
+ Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.5ms)
68699
+  (0.1ms) rollback transaction
68700
+  (0.0ms) begin transaction
68701
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68702
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68703
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68704
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68705
+ Processing by AdvertSelector::PlacementsController#show as HTML
68706
+ Parameters: {"id"=>"405688915"}
68707
+ Redirected to http://test.host/advert_selector/placements/405688915/edit
68708
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
68709
+  (0.1ms) rollback transaction
68710
+  (0.0ms) begin transaction
68711
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68712
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68713
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68714
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
68715
+ Processing by AdvertSelector::PlacementsController#update as HTML
68716
+ Parameters: {"id"=>"405688915", "placement"=>{"name"=>"Leaderboard"}}
68717
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
68718
+  (0.0ms) SAVEPOINT active_record_1
68719
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68720
+ Redirected to http://test.host/advert_selector/placements/405688915
68721
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
68722
+  (0.1ms) rollback transaction
68723
+  (0.0ms) begin transaction
68724
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68725
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68726
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68727
+  (0.1ms) rollback transaction
68728
+  (0.0ms) begin transaction
68729
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68730
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68731
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68732
+  (0.0ms) SAVEPOINT active_record_1
68733
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-22 09:00:00.000373' WHERE "advert_selector_banners"."id" = 814558298
68734
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68736
+  (0.0ms) SAVEPOINT active_record_1
68737
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.002287' WHERE "advert_selector_banners"."id" = 394627963
68738
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68739
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68740
+
68741
+
68742
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
68743
+ Processing by ExamplesController#index as HTML
68744
+ [AdvertSelector] AdvertSelection initialized
68745
+ [AdvertSelector] AdvertSelection fetching banners and placements
68746
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.006292' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.006477' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68747
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68748
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68749
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68750
+ [AdvertSelector] AdvertSelection finished
68751
+ Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms)
68752
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68753
+  (0.0ms) SAVEPOINT active_record_1
68754
+ SQL (0.2ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
68755
+ SQL (0.2ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "always_false"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68757
+
68758
+
68759
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
68760
+ Processing by ExamplesController#index as HTML
68761
+ [AdvertSelector] AdvertSelection initialized
68762
+ [AdvertSelector] AdvertSelection fetching banners and placements
68763
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.019141' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.019378' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68764
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68765
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68766
+ [AdvertSelector] AdvertSelection finished
68767
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.4ms)
68768
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68769
+  (0.1ms) rollback transaction
68770
+  (0.0ms) begin transaction
68771
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68772
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68773
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68774
+  (0.0ms) SAVEPOINT active_record_1
68775
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-22 09:00:00.000406' WHERE "advert_selector_banners"."id" = 814558298
68776
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68777
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68778
+  (0.0ms) SAVEPOINT active_record_1
68779
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.002286' WHERE "advert_selector_banners"."id" = 394627963
68780
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68782
+  (0.0ms) SAVEPOINT active_record_1
68783
+ SQL (0.2ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
68784
+ SQL (0.2ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "raise_error"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
68785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68786
+
68787
+
68788
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
68789
+ Processing by ExamplesController#index as HTML
68790
+ [AdvertSelector] AdvertSelection initialized
68791
+ [AdvertSelector] AdvertSelection fetching banners and placements
68792
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.004110' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.004283' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68793
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68794
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68795
+ [AdvertSelector] Error with banner Coke in placement Leaderboard.
68796
+ 2012-10-22T12:00:00+03:00 - http://www.example.com/ - {"action"=>"index", "controller"=>"examples"}
68797
+ #<ZeroDivisionError: divided by 0>
68798
+
68799
+ /home/ohu/koodi/gems/advert_selector/test/dummy/app/helpers/advert_selector_helper.rb:9:in `/'
68800
+ /home/ohu/koodi/gems/advert_selector/test/dummy/app/helpers/advert_selector_helper.rb:9:in `advert_selector_raise_error'
68801
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:53:in `send'
68802
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:53:in `advert_selector_banner_try'
68803
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `each'
68804
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `send'
68805
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
68806
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:49:in `advert_selector_banner_try'
68807
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:20:in `advert_selector_initialize'
68808
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each'
68809
+ [AdvertSelector] AdvertSelection finished
68810
+ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.4ms)
68811
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68812
+
68813
+
68814
+ Started GET "/advert_selector/placements" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
68815
+ Processing by AdvertSelector::PlacementsController#index as HTML
68816
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
68817
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.021326') ORDER BY priority desc LIMIT 10
68818
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68819
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68820
+ CACHE (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
68821
+ CACHE (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
68822
+ Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.4ms)
68823
+  (0.1ms) rollback transaction
68824
+  (0.0ms) begin transaction
68825
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68826
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68827
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68828
+  (0.0ms) SAVEPOINT active_record_1
68829
+  (0.3ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-22 09:00:00.000411' WHERE "advert_selector_banners"."id" = 814558298
68830
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68832
+  (0.0ms) SAVEPOINT active_record_1
68833
+  (0.2ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-22 09:00:00.003760' WHERE "advert_selector_banners"."id" = 394627963
68834
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68836
+  (0.0ms) SAVEPOINT active_record_1
68837
+  (0.1ms) UPDATE "advert_selector_banners" SET "frequency" = 2, "updated_at" = '2012-10-22 09:00:00.000466' WHERE "advert_selector_banners"."id" = 814558298
68838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68839
+
68840
+
68841
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
68842
+ Processing by ExamplesController#index as HTML
68843
+ [AdvertSelector] AdvertSelection initialized
68844
+ [AdvertSelector] AdvertSelection fetching banners and placements
68845
+ [AdvertSelector] AdvertSelector::Banner Load (0.3ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.004970' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.005338' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68846
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68847
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.2ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68848
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68849
+ [AdvertSelector] AdvertSelection finished
68850
+ Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.6ms)
68851
+ AdvertSelector::HelperItem Load (0.2ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68852
+
68853
+
68854
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68855
+ Processing by ExamplesController#index as HTML
68856
+ [AdvertSelector] AdvertSelection initialized
68857
+ [AdvertSelector] AdvertSelection fetching banners and placements
68858
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.024446' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.024625' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68859
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68860
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68861
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68862
+ [AdvertSelector] AdvertSelection finished
68863
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.3ms)
68864
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68865
+
68866
+
68867
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68868
+ Processing by ExamplesController#index as HTML
68869
+ [AdvertSelector] AdvertSelection initialized
68870
+ [AdvertSelector] AdvertSelection finished
68871
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
68872
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68873
+  (0.1ms) rollback transaction
68874
+  (0.0ms) begin transaction
68875
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68876
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68877
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68878
+  (0.0ms) SAVEPOINT active_record_1
68879
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000421' WHERE "advert_selector_banners"."id" = 814558298
68880
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68882
+  (0.0ms) SAVEPOINT active_record_1
68883
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002286' WHERE "advert_selector_banners"."id" = 394627963
68884
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68885
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68886
+
68887
+
68888
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68889
+ Processing by ExamplesController#index as HTML
68890
+ [AdvertSelector] AdvertSelection initialized
68891
+ [AdvertSelector] AdvertSelection fetching banners and placements
68892
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.002363' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.002549' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68893
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68894
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68895
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68896
+ [AdvertSelector] AdvertSelection finished
68897
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.4ms)
68898
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68899
+
68900
+
68901
+ Started GET "/?advert_selector_force=207249520" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68902
+ Processing by ExamplesController#index as HTML
68903
+ Parameters: {"advert_selector_force"=>"207249520"}
68904
+ [AdvertSelector] AdvertSelection initialized
68905
+ [AdvertSelector] AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = 207249520 LIMIT 1
68906
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68907
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
68908
+ [AdvertSelector] ForceShowing banner parade_banner in placement Parade
68909
+ [AdvertSelector] AdvertSelection fetching banners and placements
68910
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.015938' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.016122' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68911
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68912
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68913
+ [AdvertSelector] AdvertSelection finished
68914
+ Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.6ms)
68915
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68916
+  (0.1ms) rollback transaction
68917
+  (0.0ms) begin transaction
68918
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68919
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68920
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68921
+  (0.0ms) SAVEPOINT active_record_1
68922
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000399' WHERE "advert_selector_banners"."id" = 814558298
68923
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68925
+  (0.0ms) SAVEPOINT active_record_1
68926
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002256' WHERE "advert_selector_banners"."id" = 394627963
68927
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68929
+  (0.0ms) SAVEPOINT active_record_1
68930
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-25 09:00:00.000438' WHERE "advert_selector_banners"."id" = 207249520
68931
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
68932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68933
+
68934
+
68935
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68936
+ Processing by ExamplesController#index as HTML
68937
+ [AdvertSelector] AdvertSelection initialized
68938
+ [AdvertSelector] AdvertSelection fetching banners and placements
68939
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.003867' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.004043' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68940
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68941
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68942
+ [AdvertSelector] Showing banner parade_banner in placement Parade
68943
+ [AdvertSelector] AdvertSelection finished
68944
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.3ms)
68945
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68946
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68947
+
68948
+
68949
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68950
+ Processing by ExamplesController#index as HTML
68951
+ [AdvertSelector] AdvertSelection initialized
68952
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68953
+ [AdvertSelector] AdvertSelection finished
68954
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
68955
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68956
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68957
+  (0.1ms) rollback transaction
68958
+  (0.0ms) begin transaction
68959
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
68960
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
68961
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
68962
+  (0.0ms) SAVEPOINT active_record_1
68963
+  (0.4ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000645' WHERE "advert_selector_banners"."id" = 814558298
68964
+ AdvertSelector::HelperItem Load (0.4ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
68965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68966
+  (0.0ms) SAVEPOINT active_record_1
68967
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.003669' WHERE "advert_selector_banners"."id" = 394627963
68968
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
68969
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68970
+  (0.0ms) SAVEPOINT active_record_1
68971
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 't', "updated_at" = '2012-10-25 09:00:00.000415' WHERE "advert_selector_banners"."id" = 207249520
68972
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
68973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68974
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
68975
+  (0.0ms) SAVEPOINT active_record_1
68976
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.002449', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 718799085
68977
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
68978
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.003807', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 405688915
68979
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
68980
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'video') LIMIT 1
68981
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.005675', "conflicting_placements_array" = '' WHERE "advert_selector_placements"."id" = 1019730477
68982
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
68983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68984
+
68985
+
68986
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
68987
+ Processing by ExamplesController#index as HTML
68988
+ [AdvertSelector] AdvertSelection initialized
68989
+ [AdvertSelector] AdvertSelection fetching banners and placements
68990
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.009192' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.009391' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
68991
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
68992
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
68993
+ [AdvertSelector] Showing banner parade_banner in placement Parade
68994
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
68995
+ [AdvertSelector] AdvertSelection finished
68996
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.4ms)
68997
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68998
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
68999
+  (0.1ms) rollback transaction
69000
+  (0.0ms) begin transaction
69001
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69002
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69003
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69004
+  (0.0ms) SAVEPOINT active_record_1
69005
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000393' WHERE "advert_selector_banners"."id" = 814558298
69006
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69008
+  (0.0ms) SAVEPOINT active_record_1
69009
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002311' WHERE "advert_selector_banners"."id" = 394627963
69010
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69012
+
69013
+
69014
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69015
+ Processing by ExamplesController#index as HTML
69016
+ [AdvertSelector] AdvertSelection initialized
69017
+ [AdvertSelector] AdvertSelection fetching banners and placements
69018
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.000226' OR end_time IS NULL) ORDER BY priority desc
69019
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69020
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69021
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69022
+ [AdvertSelector] AdvertSelection finished
69023
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.4ms)
69024
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69025
+
69026
+
69027
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69028
+ Processing by ExamplesController#index as HTML
69029
+ [AdvertSelector] AdvertSelection initialized
69030
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69031
+ [AdvertSelector] AdvertSelection finished
69032
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
69033
+
69034
+
69035
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:15:00 +0300 2012
69036
+ Processing by ExamplesController#index as HTML
69037
+ [AdvertSelector] AdvertSelection initialized
69038
+ [AdvertSelector] AdvertSelection fetching banners and placements
69039
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69040
+ [AdvertSelector] AdvertSelection finished
69041
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
69042
+  (0.1ms) rollback transaction
69043
+  (0.0ms) begin transaction
69044
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69045
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69046
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69047
+  (0.0ms) SAVEPOINT active_record_1
69048
+  (0.2ms) UPDATE "advert_selector_banners" SET "fast_mode" = 't', "updated_at" = '2012-10-25 09:00:00.000413' WHERE "advert_selector_banners"."id" = 814558298
69049
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69051
+  (0.0ms) SAVEPOINT active_record_1
69052
+  (0.1ms) UPDATE "advert_selector_banners" SET "confirmed" = 'f', "updated_at" = '2012-10-25 09:00:00.002317' WHERE "advert_selector_banners"."id" = 394627963
69053
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69055
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69056
+  (0.0ms) SAVEPOINT active_record_1
69057
+  (0.1ms) UPDATE "advert_selector_placements" SET "updated_at" = '2012-10-25 09:00:00.000869', "only_once_per_session" = 't' WHERE "advert_selector_placements"."id" = 405688915
69058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69059
+
69060
+
69061
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69062
+ Processing by ExamplesController#index as HTML
69063
+ [AdvertSelector] AdvertSelection initialized
69064
+ [AdvertSelector] AdvertSelection fetching banners and placements
69065
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.003759' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.003929' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69066
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69067
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69068
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69069
+ [AdvertSelector] AdvertSelection finished
69070
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)
69071
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69072
+
69073
+
69074
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69075
+ Processing by ExamplesController#index as HTML
69076
+ [AdvertSelector] AdvertSelection initialized
69077
+ [AdvertSelector] AdvertSelection finished
69078
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
69079
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69080
+  (0.1ms) rollback transaction
69081
+  (0.0ms) begin transaction
69082
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69083
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69084
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69085
+ Processing by ExamplesController#index as HTML
69086
+ [AdvertSelector] AdvertSelection initialized
69087
+ [AdvertSelector] AdvertSelection fetching banners and placements
69088
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.002359' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.002536' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69089
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69090
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69091
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69092
+ [AdvertSelector] AdvertSelection finished
69093
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.3ms)
69094
+  (0.1ms) rollback transaction
69095
+ Connecting to database specified by database.yml
69096
+  (0.1ms) begin transaction
69097
+ Fixture Delete (0.3ms) DELETE FROM "advert_selector_banners"
69098
+ Fixture Insert (0.2ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "running_view_count", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Coke banner', 'Coke', 405688915, '2012-10-22 15:17:50', 100, '2012-10-27 00:00:00', 't', '2012-10-22 15:17:50', 50, 814558298, 1000, 'f', 0, '2012-10-17 00:00:00')
69099
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_banners" ("comment", "name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('Pepsi banner', 'Pepsi', 405688915, '2012-10-22 15:17:50', '2012-11-01 00:00:00', 't', '2012-10-22 15:17:50', 100, 394627963, 1000, 't', 0, '2012-10-22 00:00:00')
69100
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_banners" ("name", "placement_id", "created_at", "end_time", "confirmed", "updated_at", "priority", "id", "target_view_count", "fast_mode", "frequency", "start_time") VALUES ('parade_banner', 718799085, '2012-10-22 15:17:50', '2012-11-01 00:00:00', 'f', '2012-10-22 15:17:50', 1000, 207249520, 1000, 't', 1, '2012-10-22 00:00:00')
69101
+ Fixture Delete (0.2ms) DELETE FROM "advert_selector_helper_items"
69102
+ Fixture Insert (0.1ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_leaderboard', 2, '2012-10-22 15:17:50', '2012-10-22 15:17:50', 960656439, 't', 394627963, '<img src=''pepsi_banner''/>')
69103
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("position", "name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES (1, 'banner_leaderboard', '2012-10-22 15:17:50', '2012-10-22 15:17:50', 929640376, 't', 814558298, '<img src=''coke_banner''/>')
69104
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "position", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('banner_parade', 1, '2012-10-22 15:17:50', '2012-10-22 15:17:50', 281932184, 't', 207249520, '<img src=''banner_parade''/>')
69105
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_helper_items" ("name", "created_at", "updated_at", "id", "content_for", "banner_id", "content") VALUES ('request_params_include?', '2012-10-22 15:17:50', '2012-10-22 15:17:50', 435138789, 'f', 394627963, 'pepsi=true')
69106
+ Fixture Delete (0.1ms) DELETE FROM "advert_selector_placements"
69107
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Parade', '2012-10-22 15:17:50', '2012-10-22 15:17:50', 'leaderboard,video', 718799085)
69108
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "only_once_per_session", "id") VALUES ('Video', '2012-10-22 15:17:50', '2012-10-22 15:17:50', 'parade', 't', 1019730477)
69109
+ Fixture Insert (0.0ms) INSERT INTO "advert_selector_placements" ("name", "created_at", "updated_at", "conflicting_placements_array", "id") VALUES ('Leaderboard', '2012-10-22 15:17:50', '2012-10-22 15:17:50', 'parade', 405688915)
69110
+  (48.7ms) commit transaction
69111
+  (0.1ms) begin transaction
69112
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69113
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69114
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69115
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items"
69116
+  (0.1ms) SAVEPOINT active_record_1
69117
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE ("advert_selector_helper_items"."banner_id" = 814558298) ORDER BY advert_selector_helper_items.position DESC LIMIT 1
69118
+ SQL (0.5ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", nil], ["position", 2], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69119
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 10)
69120
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", true], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "content_for_invalid"], ["position", 10], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69121
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
69122
+ SQL (0.1ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "some_limit_helper_here"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69123
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69124
+ SQL (0.1ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656440]]
69125
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position > 3)
69126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69127
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69128
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_helper_items" 
69129
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position LIMIT 1
69130
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position DESC LIMIT 1
69131
+  (0.1ms) rollback transaction
69132
+  (0.0ms) begin transaction
69133
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69134
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69135
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69136
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000064' OR end_time IS NULL)
69137
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.000853' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.000969' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
69138
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.001803' OR end_time IS NULL)
69139
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" WHERE (end_time > '2011-10-22 09:00:00.002530' OR end_time IS NULL) AND (start_time < '2011-10-22 10:00:00.002651' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count)
69140
+  (0.0ms) rollback transaction
69141
+  (0.0ms) begin transaction
69142
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69143
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69144
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69145
+  (0.0ms) rollback transaction
69146
+  (0.0ms) begin transaction
69147
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69148
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69149
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69150
+  (0.0ms) SAVEPOINT active_record_1
69151
+  (0.3ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000879', "running_view_count" = 0 WHERE "advert_selector_banners"."id" = 814558298
69152
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69154
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69155
+  (0.0ms) SAVEPOINT active_record_1
69156
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.007089', "running_view_count" = 551 WHERE "advert_selector_banners"."id" = 814558298
69157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69158
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69159
+  (0.1ms) rollback transaction
69160
+  (0.0ms) begin transaction
69161
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69162
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69163
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69164
+  (0.0ms) SAVEPOINT active_record_1
69165
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000862', "target_view_count" = 10, "running_view_count" = 0 WHERE "advert_selector_banners"."id" = 814558298
69166
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69168
+  (0.0ms) SAVEPOINT active_record_1
69169
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.004099', "running_view_count" = 10 WHERE "advert_selector_banners"."id" = 814558298
69170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69171
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69172
+  (0.1ms) rollback transaction
69173
+  (0.0ms) begin transaction
69174
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69175
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69176
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69177
+  (0.0ms) SAVEPOINT active_record_1
69178
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000372', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 814558298
69179
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69181
+  (0.0ms) SAVEPOINT active_record_1
69182
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002416', "confirmed" = 't' WHERE "advert_selector_banners"."id" = 814558298
69183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69184
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69185
+  (0.1ms) rollback transaction
69186
+  (0.0ms) begin transaction
69187
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69188
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69189
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69190
+  (0.0ms) SAVEPOINT active_record_1
69191
+  (0.3ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000738', "start_time" = '2012-10-22 10:00:00.000342' WHERE "advert_selector_banners"."id" = 814558298
69192
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69194
+  (0.0ms) SAVEPOINT active_record_1
69195
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002875', "start_time" = '2012-10-22 07:00:00.002472', "end_time" = '2012-10-22 08:00:00.002547' WHERE "advert_selector_banners"."id" = 814558298
69196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69197
+  (0.0ms) SAVEPOINT active_record_1
69198
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.004478', "start_time" = NULL, "end_time" = '2012-10-22 10:00:00.004137' WHERE "advert_selector_banners"."id" = 814558298
69199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69200
+  (0.1ms) rollback transaction
69201
+  (0.0ms) begin transaction
69202
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69203
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69204
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69205
+  (0.0ms) SAVEPOINT active_record_1
69206
+  (0.4ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000868', "start_time" = '2012-10-21 21:00:00.000000', "target_view_count" = 100, "end_time" = '2012-11-01 00:00:00.000000' WHERE "advert_selector_banners"."id" = 814558298
69207
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69209
+  (0.0ms) SAVEPOINT active_record_1
69210
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.003239', "running_view_count" = 0 WHERE "advert_selector_banners"."id" = 814558298
69211
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69212
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69213
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69214
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69215
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69216
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69217
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69218
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69219
+  (0.0ms) SAVEPOINT active_record_1
69220
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 16:00:00.001481', "start_time" = '2012-10-22 15:00:00.000763' WHERE "advert_selector_banners"."id" = 814558298
69221
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69223
+  (0.1ms) rollback transaction
69224
+  (0.0ms) begin transaction
69225
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69226
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69227
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69228
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners" 
69229
+ Processing by AdvertSelector::BannersController#create as HTML
69230
+ Parameters: {"banner"=>{"comment"=>"Pepsi banner", "name"=>"Pepsi", "placement_id"=>"405688915", "end_time"=>"2012-11-01 00:00:00 UTC", "target_view_count"=>"1000", "frequency"=>"0", "start_time"=>"2012-10-22 00:00:00 UTC"}}
69231
+  (0.1ms) SAVEPOINT active_record_1
69232
+ SQL (0.6ms) INSERT INTO "advert_selector_banners" ("comment", "confirmed", "created_at", "end_time", "fast_mode", "frequency", "name", "placement_id", "priority", "running_view_count", "start_time", "target_view_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["comment", "Pepsi banner"], ["confirmed", false], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["end_time", Thu, 01 Nov 2012 00:00:00 UTC +00:00], ["fast_mode", false], ["frequency", 0], ["name", "Pepsi"], ["placement_id", 405688915], ["priority", 0], ["running_view_count", 0], ["start_time", Mon, 22 Oct 2012 00:00:00 UTC +00:00], ["target_view_count", 1000], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69233
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558299 ORDER BY position
69234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69235
+ Redirected to http://test.host/advert_selector/banners/814558299
69236
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
69237
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners"
69238
+  (0.1ms) rollback transaction
69239
+  (0.0ms) begin transaction
69240
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69241
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69242
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69243
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_banners"
69244
+ Processing by AdvertSelector::BannersController#destroy as HTML
69245
+ Parameters: {"id"=>"394627963"}
69246
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
69247
+  (0.0ms) SAVEPOINT active_record_1
69248
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69249
+ SQL (0.3ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 435138789]]
69250
+ SQL (0.0ms) DELETE FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."id" = ? [["id", 960656439]]
69251
+ SQL (0.1ms) UPDATE "advert_selector_helper_items" SET position = (position - 1) WHERE ("advert_selector_helper_items"."banner_id" = 394627963 AND position > 2)
69252
+ SQL (0.3ms) DELETE FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? [["id", 394627963]]
69253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69254
+ Redirected to http://test.host/advert_selector/banners
69255
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
69256
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_banners" 
69257
+  (0.1ms) rollback transaction
69258
+  (0.0ms) begin transaction
69259
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69260
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69261
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69262
+ Processing by AdvertSelector::BannersController#edit as HTML
69263
+ Parameters: {"id"=>"394627963"}
69264
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
69265
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69266
+  (0.1ms) SELECT COUNT(*) FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963
69267
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69268
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/banners/_form.html.erb (50.0ms)
69269
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.062558') ORDER BY priority desc LIMIT 10
69270
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69271
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69272
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69273
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
69274
+ Completed 200 OK in 67ms (Views: 65.8ms | ActiveRecord: 0.8ms)
69275
+  (0.1ms) rollback transaction
69276
+  (0.0ms) begin transaction
69277
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69278
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69279
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69280
+ Processing by AdvertSelector::BannersController#index as HTML
69281
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" 
69282
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.007016') ORDER BY priority desc LIMIT 10
69283
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69284
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69285
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69286
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69287
+ Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.5ms)
69288
+  (0.1ms) rollback transaction
69289
+  (0.0ms) begin transaction
69290
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69291
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69292
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69293
+ Processing by AdvertSelector::BannersController#new as HTML
69294
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69295
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/banners/_form.html.erb (18.5ms)
69296
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.023227') ORDER BY priority desc LIMIT 10
69297
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69298
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69299
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69300
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
69301
+ Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.5ms)
69302
+  (0.1ms) rollback transaction
69303
+  (0.0ms) begin transaction
69304
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69305
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69306
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69307
+ Processing by AdvertSelector::BannersController#show as HTML
69308
+ Parameters: {"id"=>"394627963"}
69309
+ Redirected to http://test.host/advert_selector/banners/394627963/edit
69310
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
69311
+  (0.1ms) rollback transaction
69312
+  (0.1ms) begin transaction
69313
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69314
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69315
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69316
+ Processing by AdvertSelector::BannersController#update as HTML
69317
+ Parameters: {"banner"=>{"comment"=>"Pepsi banner"}, "id"=>"394627963"}
69318
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
69319
+  (0.0ms) SAVEPOINT active_record_1
69320
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69321
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69322
+ Redirected to http://test.host/advert_selector/banners/394627963
69323
+ Completed 302 Found in 3ms (ActiveRecord: 0.2ms)
69324
+  (0.1ms) rollback transaction
69325
+  (0.0ms) begin transaction
69326
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69327
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69328
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69329
+  (0.0ms) SAVEPOINT active_record_1
69330
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.001172', "running_view_count" = 1 WHERE "advert_selector_banners"."id" = 394627963
69331
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69333
+ Processing by AdvertSelector::BannersController#update_running_view_count as HTML
69334
+ Parameters: {"banner"=>{"running_view_count"=>"99"}, "id"=>"394627963"}
69335
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", "394627963"]]
69336
+ SQL (0.2ms) UPDATE "advert_selector_banners" SET "running_view_count" = 99 WHERE "advert_selector_banners"."id" = 394627963
69337
+ SQL (0.3ms) UPDATE "advert_selector_banners" SET "running_view_count" = 99 WHERE "advert_selector_banners"."id" = 394627963
69338
+ Redirected to http://test.host/advert_selector/banners/394627963
69339
+ Completed 302 Found in 1057ms (ActiveRecord: 0.6ms)
69340
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69341
+  (0.1ms) rollback transaction
69342
+  (0.0ms) begin transaction
69343
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69344
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69345
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69346
+ Processing by AdvertSelector::MainController#index as HTML
69347
+ Filter chain halted as :admin_access_only rendered or redirected
69348
+ Completed 403 Forbidden in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
69349
+  (0.1ms) rollback transaction
69350
+  (0.0ms) begin transaction
69351
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69352
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69353
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69354
+ Processing by AdvertSelector::MainController#clear_errors_log as HTML
69355
+ Redirected to http://test.host/advert_selector/
69356
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
69357
+  (0.1ms) rollback transaction
69358
+  (0.0ms) begin transaction
69359
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69360
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69361
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69362
+ Processing by AdvertSelector::MainController#index as HTML
69363
+ AdvertSelector::Banner Load (0.3ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.005957') ORDER BY priority desc LIMIT 10
69364
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69365
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69366
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69367
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69368
+ Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.8ms)
69369
+  (0.1ms) rollback transaction
69370
+  (0.1ms) begin transaction
69371
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69372
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69373
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69374
+ AdvertSelector::Placement Load (0.2ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
69375
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69376
+  (0.1ms) rollback transaction
69377
+  (0.0ms) begin transaction
69378
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69379
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69380
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69381
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
69382
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69383
+  (0.0ms) SAVEPOINT active_record_1
69384
+  (0.2ms) UPDATE "advert_selector_placements" SET "conflicting_placements_array" = 'not_found,video', "updated_at" = '2012-10-22 09:00:00.000774' WHERE "advert_selector_placements"."id" = 718799085
69385
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
69386
+  (0.1ms) UPDATE "advert_selector_placements" SET "conflicting_placements_array" = '', "updated_at" = '2012-10-22 09:00:00.002278' WHERE "advert_selector_placements"."id" = 405688915
69387
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
69388
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."name" = 'not_found' LIMIT 1
69389
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."name" = 'video' LIMIT 1
69390
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69391
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
69392
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69393
+  (0.1ms) rollback transaction
69394
+  (0.0ms) begin transaction
69395
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69396
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69397
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69398
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
69399
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69400
+  (0.1ms) rollback transaction
69401
+  (0.0ms) begin transaction
69402
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69403
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69404
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69405
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
69406
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69407
+  (0.1ms) rollback transaction
69408
+  (0.0ms) begin transaction
69409
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69410
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69411
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69412
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 718799085]]
69413
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69414
+  (0.0ms) rollback transaction
69415
+  (0.0ms) begin transaction
69416
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69417
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69418
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69419
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69420
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
69421
+ Processing by AdvertSelector::PlacementsController#create as HTML
69422
+ Parameters: {"placement"=>{"name"=>"new placement"}}
69423
+  (0.1ms) SAVEPOINT active_record_1
69424
+ SQL (0.5ms) INSERT INTO "advert_selector_placements" ("conflicting_placements_array", "created_at", "name", "only_once_per_session", "updated_at") VALUES (?, ?, ?, ?, ?) [["conflicting_placements_array", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "new placement"], ["only_once_per_session", nil], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69426
+ Redirected to http://test.host/advert_selector/placements/1019730478
69427
+ Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
69428
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
69429
+  (0.1ms) rollback transaction
69430
+  (0.0ms) begin transaction
69431
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69432
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69433
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69434
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69435
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements" 
69436
+ Processing by AdvertSelector::PlacementsController#destroy as HTML
69437
+ Parameters: {"id"=>"405688915"}
69438
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
69439
+  (0.0ms) SAVEPOINT active_record_1
69440
+ SQL (0.2ms) DELETE FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? [["id", 405688915]]
69441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69442
+ Redirected to http://test.host/advert_selector/placements
69443
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
69444
+  (0.0ms) SELECT COUNT(*) FROM "advert_selector_placements"
69445
+  (0.1ms) rollback transaction
69446
+  (0.0ms) begin transaction
69447
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69448
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69449
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69450
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69451
+ Processing by AdvertSelector::PlacementsController#edit as HTML
69452
+ Parameters: {"id"=>"405688915"}
69453
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
69454
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
69455
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
69456
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/placements/_form.html.erb (5.6ms)
69457
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.011102') ORDER BY priority desc LIMIT 10
69458
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69459
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69460
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69461
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69462
+ Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.6ms)
69463
+  (0.1ms) rollback transaction
69464
+  (0.0ms) begin transaction
69465
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69466
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69467
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69468
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69469
+ Processing by AdvertSelector::PlacementsController#index as HTML
69470
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
69471
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.006383') ORDER BY priority desc LIMIT 10
69472
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69473
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69474
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69475
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69476
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.5ms)
69477
+  (0.1ms) rollback transaction
69478
+  (0.0ms) begin transaction
69479
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69480
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69481
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69482
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69483
+ Processing by AdvertSelector::PlacementsController#new as HTML
69484
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = '') LIMIT 1
69485
+ Rendered /home/ohu/koodi/gems/advert_selector/app/views/advert_selector/placements/_form.html.erb (4.1ms)
69486
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.008278') ORDER BY priority desc LIMIT 10
69487
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69488
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69489
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69490
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69491
+ Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.5ms)
69492
+  (0.1ms) rollback transaction
69493
+  (0.0ms) begin transaction
69494
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69495
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69496
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69497
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69498
+ Processing by AdvertSelector::PlacementsController#show as HTML
69499
+ Parameters: {"id"=>"405688915"}
69500
+ Redirected to http://test.host/advert_selector/placements/405688915/edit
69501
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
69502
+  (0.1ms) rollback transaction
69503
+  (0.0ms) begin transaction
69504
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69505
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69506
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69507
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", 405688915]]
69508
+ Processing by AdvertSelector::PlacementsController#update as HTML
69509
+ Parameters: {"id"=>"405688915", "placement"=>{"name"=>"Leaderboard"}}
69510
+ AdvertSelector::Placement Load (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = ? LIMIT 1 [["id", "405688915"]]
69511
+  (0.0ms) SAVEPOINT active_record_1
69512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69513
+ Redirected to http://test.host/advert_selector/placements/405688915
69514
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
69515
+  (0.1ms) rollback transaction
69516
+  (0.0ms) begin transaction
69517
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69518
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69519
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69520
+  (0.0ms) rollback transaction
69521
+  (0.0ms) begin transaction
69522
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69523
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69524
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69525
+  (0.0ms) SAVEPOINT active_record_1
69526
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000371', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69527
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69528
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69529
+  (0.0ms) SAVEPOINT active_record_1
69530
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002222', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69531
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69532
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69533
+
69534
+
69535
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
69536
+ Processing by ExamplesController#index as HTML
69537
+ [AdvertSelector] AdvertSelection initialized
69538
+ [AdvertSelector] AdvertSelection fetching banners and placements
69539
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.006269' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.006451' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69540
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69541
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69542
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69543
+ [AdvertSelector] AdvertSelection finished
69544
+ Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.4ms)
69545
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69546
+  (0.0ms) SAVEPOINT active_record_1
69547
+ SQL (0.2ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
69548
+ SQL (0.2ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "always_false"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69550
+
69551
+
69552
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
69553
+ Processing by ExamplesController#index as HTML
69554
+ [AdvertSelector] AdvertSelection initialized
69555
+ [AdvertSelector] AdvertSelection fetching banners and placements
69556
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.019408' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.019585' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69557
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69558
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69559
+ [AdvertSelector] AdvertSelection finished
69560
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.4ms)
69561
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69562
+  (0.1ms) rollback transaction
69563
+  (0.0ms) begin transaction
69564
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69565
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69566
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69567
+  (0.0ms) SAVEPOINT active_record_1
69568
+  (0.3ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000439', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69569
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69571
+  (0.0ms) SAVEPOINT active_record_1
69572
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002523', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69573
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69574
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69575
+  (0.0ms) SAVEPOINT active_record_1
69576
+ SQL (0.2ms) UPDATE "advert_selector_helper_items" SET position = (position + 1) WHERE ("advert_selector_helper_items"."banner_id" = 814558298 AND position >= 0)
69577
+ SQL (0.2ms) INSERT INTO "advert_selector_helper_items" ("banner_id", "content", "content_for", "created_at", "name", "position", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["banner_id", 814558298], ["content", nil], ["content_for", nil], ["created_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00], ["name", "raise_error"], ["position", 0], ["updated_at", Mon, 22 Oct 2012 09:00:00 UTC +00:00]]
69578
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69579
+
69580
+
69581
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
69582
+ Processing by ExamplesController#index as HTML
69583
+ [AdvertSelector] AdvertSelection initialized
69584
+ [AdvertSelector] AdvertSelection fetching banners and placements
69585
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.004324' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.004496' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69586
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69587
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69588
+ [AdvertSelector] Error with banner Coke in placement Leaderboard.
69589
+ 2012-10-22T12:00:00+03:00 - http://www.example.com/ - {"action"=>"index", "controller"=>"examples"}
69590
+ #<ZeroDivisionError: divided by 0>
69591
+
69592
+ /home/ohu/koodi/gems/advert_selector/test/dummy/app/helpers/advert_selector_helper.rb:9:in `/'
69593
+ /home/ohu/koodi/gems/advert_selector/test/dummy/app/helpers/advert_selector_helper.rb:9:in `advert_selector_raise_error'
69594
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:53:in `send'
69595
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:53:in `advert_selector_banner_try'
69596
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `each'
69597
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `send'
69598
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
69599
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:49:in `advert_selector_banner_try'
69600
+ /home/ohu/koodi/gems/advert_selector/app/helpers/advert_selector/application_helper.rb:20:in `advert_selector_initialize'
69601
+ /home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each'
69602
+ [AdvertSelector] AdvertSelection finished
69603
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
69604
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69605
+
69606
+
69607
+ Started GET "/advert_selector/placements" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
69608
+ Processing by AdvertSelector::PlacementsController#index as HTML
69609
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" 
69610
+ AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time is null or end_time > '2012-10-20 09:00:00.020387') ORDER BY priority desc LIMIT 10
69611
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69612
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69613
+ CACHE (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69614
+ CACHE (0.0ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements"
69615
+ Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.4ms)
69616
+  (0.1ms) rollback transaction
69617
+  (0.0ms) begin transaction
69618
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69619
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69620
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69621
+  (0.0ms) SAVEPOINT active_record_1
69622
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000398', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69623
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69625
+  (0.0ms) SAVEPOINT active_record_1
69626
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.002358', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69627
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69629
+  (0.0ms) SAVEPOINT active_record_1
69630
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-22 09:00:00.000267', "frequency" = 2 WHERE "advert_selector_banners"."id" = 814558298
69631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69632
+
69633
+
69634
+ Started GET "/" for 127.0.0.1 at Mon Oct 22 12:00:00 +0300 2012
69635
+ Processing by ExamplesController#index as HTML
69636
+ [AdvertSelector] AdvertSelection initialized
69637
+ [AdvertSelector] AdvertSelection fetching banners and placements
69638
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-22 09:00:00.003111' OR end_time IS NULL) AND (start_time < '2012-10-22 10:00:00.003281' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69639
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69640
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69641
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69642
+ [AdvertSelector] AdvertSelection finished
69643
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
69644
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69645
+
69646
+
69647
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69648
+ Processing by ExamplesController#index as HTML
69649
+ [AdvertSelector] AdvertSelection initialized
69650
+ [AdvertSelector] AdvertSelection fetching banners and placements
69651
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.016358' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.016524' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69652
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69653
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69654
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69655
+ [AdvertSelector] AdvertSelection finished
69656
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
69657
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69658
+
69659
+
69660
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69661
+ Processing by ExamplesController#index as HTML
69662
+ [AdvertSelector] AdvertSelection initialized
69663
+ [AdvertSelector] AdvertSelection finished
69664
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
69665
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69666
+  (0.1ms) rollback transaction
69667
+  (0.0ms) begin transaction
69668
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69669
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69670
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69671
+  (0.0ms) SAVEPOINT active_record_1
69672
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000399', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69673
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69675
+  (0.0ms) SAVEPOINT active_record_1
69676
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.002262', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69677
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69679
+
69680
+
69681
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69682
+ Processing by ExamplesController#index as HTML
69683
+ [AdvertSelector] AdvertSelection initialized
69684
+ [AdvertSelector] AdvertSelection fetching banners and placements
69685
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.002335' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.002527' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69686
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69687
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69688
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69689
+ [AdvertSelector] AdvertSelection finished
69690
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.4ms)
69691
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69692
+
69693
+
69694
+ Started GET "/?advert_selector_force=207249520" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69695
+ Processing by ExamplesController#index as HTML
69696
+ Parameters: {"advert_selector_force"=>"207249520"}
69697
+ [AdvertSelector] AdvertSelection initialized
69698
+ [AdvertSelector] AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = 207249520 LIMIT 1
69699
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69700
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
69701
+ [AdvertSelector] ForceShowing banner parade_banner in placement Parade
69702
+ [AdvertSelector] AdvertSelection fetching banners and placements
69703
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.015686' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.015863' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69704
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69705
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69706
+ [AdvertSelector] AdvertSelection finished
69707
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.6ms)
69708
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69709
+  (0.1ms) rollback transaction
69710
+  (0.0ms) begin transaction
69711
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69712
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69713
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69714
+  (0.0ms) SAVEPOINT active_record_1
69715
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000398', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69716
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69718
+  (0.0ms) SAVEPOINT active_record_1
69719
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.002296', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69720
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69722
+  (0.0ms) SAVEPOINT active_record_1
69723
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000419', "confirmed" = 't' WHERE "advert_selector_banners"."id" = 207249520
69724
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
69725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69726
+
69727
+
69728
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69729
+ Processing by ExamplesController#index as HTML
69730
+ [AdvertSelector] AdvertSelection initialized
69731
+ [AdvertSelector] AdvertSelection fetching banners and placements
69732
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.003950' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.004140' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69733
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69734
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69735
+ [AdvertSelector] Showing banner parade_banner in placement Parade
69736
+ [AdvertSelector] AdvertSelection finished
69737
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.4ms)
69738
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69739
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69740
+
69741
+
69742
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69743
+ Processing by ExamplesController#index as HTML
69744
+ [AdvertSelector] AdvertSelection initialized
69745
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69746
+ [AdvertSelector] AdvertSelection finished
69747
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
69748
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69749
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69750
+  (0.1ms) rollback transaction
69751
+  (0.0ms) begin transaction
69752
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69753
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69754
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69755
+  (0.0ms) SAVEPOINT active_record_1
69756
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000421', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69757
+ AdvertSelector::HelperItem Load (0.4ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69759
+  (0.0ms) SAVEPOINT active_record_1
69760
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.002589', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69761
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69762
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69763
+  (0.0ms) SAVEPOINT active_record_1
69764
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000426', "confirmed" = 't' WHERE "advert_selector_banners"."id" = 207249520
69765
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 ORDER BY position
69766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69767
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 718799085 LIMIT 1
69768
+  (0.0ms) SAVEPOINT active_record_1
69769
+  (0.1ms) UPDATE "advert_selector_placements" SET "conflicting_placements_array" = '', "updated_at" = '2012-10-25 09:00:00.002717' WHERE "advert_selector_placements"."id" = 718799085
69770
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'leaderboard') LIMIT 1
69771
+  (0.1ms) UPDATE "advert_selector_placements" SET "conflicting_placements_array" = '', "updated_at" = '2012-10-25 09:00:00.003988' WHERE "advert_selector_placements"."id" = 405688915
69772
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
69773
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'video') LIMIT 1
69774
+  (0.1ms) UPDATE "advert_selector_placements" SET "conflicting_placements_array" = '', "updated_at" = '2012-10-25 09:00:00.005645' WHERE "advert_selector_placements"."id" = 1019730477
69775
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE (LOWER(name) = 'parade') LIMIT 1
69776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69777
+
69778
+
69779
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69780
+ Processing by ExamplesController#index as HTML
69781
+ [AdvertSelector] AdvertSelection initialized
69782
+ [AdvertSelector] AdvertSelection fetching banners and placements
69783
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.009033' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.009233' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69784
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69785
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69786
+ [AdvertSelector] Showing banner parade_banner in placement Parade
69787
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69788
+ [AdvertSelector] AdvertSelection finished
69789
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.3ms)
69790
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 207249520 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69791
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69792
+  (0.1ms) rollback transaction
69793
+  (0.0ms) begin transaction
69794
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69795
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69796
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69797
+  (0.0ms) SAVEPOINT active_record_1
69798
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000417', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69799
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69801
+  (0.0ms) SAVEPOINT active_record_1
69802
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.002290', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69803
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69804
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69805
+
69806
+
69807
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69808
+ Processing by ExamplesController#index as HTML
69809
+ [AdvertSelector] AdvertSelection initialized
69810
+ [AdvertSelector] AdvertSelection fetching banners and placements
69811
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.000281' OR end_time IS NULL) ORDER BY priority desc
69812
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69813
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69814
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69815
+ [AdvertSelector] AdvertSelection finished
69816
+ Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.4ms)
69817
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69818
+
69819
+
69820
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69821
+ Processing by ExamplesController#index as HTML
69822
+ [AdvertSelector] AdvertSelection initialized
69823
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69824
+ [AdvertSelector] AdvertSelection finished
69825
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
69826
+
69827
+
69828
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:15:00 +0300 2012
69829
+ Processing by ExamplesController#index as HTML
69830
+ [AdvertSelector] AdvertSelection initialized
69831
+ [AdvertSelector] AdvertSelection fetching banners and placements
69832
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69833
+ [AdvertSelector] AdvertSelection finished
69834
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
69835
+  (0.1ms) rollback transaction
69836
+  (0.0ms) begin transaction
69837
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69838
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69839
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69840
+  (0.0ms) SAVEPOINT active_record_1
69841
+  (0.2ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.000388', "fast_mode" = 't' WHERE "advert_selector_banners"."id" = 814558298
69842
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 ORDER BY position
69843
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69844
+  (0.0ms) SAVEPOINT active_record_1
69845
+  (0.1ms) UPDATE "advert_selector_banners" SET "updated_at" = '2012-10-25 09:00:00.002367', "confirmed" = 'f' WHERE "advert_selector_banners"."id" = 394627963
69846
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 394627963 ORDER BY position
69847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69848
+ AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" = 405688915 LIMIT 1
69849
+  (0.0ms) SAVEPOINT active_record_1
69850
+  (0.1ms) UPDATE "advert_selector_placements" SET "only_once_per_session" = 't', "updated_at" = '2012-10-25 09:00:00.001013' WHERE "advert_selector_placements"."id" = 405688915
69851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69852
+
69853
+
69854
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69855
+ Processing by ExamplesController#index as HTML
69856
+ [AdvertSelector] AdvertSelection initialized
69857
+ [AdvertSelector] AdvertSelection fetching banners and placements
69858
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.003860' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.004022' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69859
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69860
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69861
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69862
+ [AdvertSelector] AdvertSelection finished
69863
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.3ms)
69864
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69865
+
69866
+
69867
+ Started GET "/" for 127.0.0.1 at Thu Oct 25 12:00:00 +0300 2012
69868
+ Processing by ExamplesController#index as HTML
69869
+ [AdvertSelector] AdvertSelection initialized
69870
+ [AdvertSelector] AdvertSelection finished
69871
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
69872
+ AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" = 814558298 AND "advert_selector_helper_items"."content_for" = 't' ORDER BY position DESC LIMIT 1
69873
+  (0.1ms) rollback transaction
69874
+  (0.0ms) begin transaction
69875
+ AdvertSelector::Banner Load (0.1ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 814558298]]
69876
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 394627963]]
69877
+ AdvertSelector::Banner Load (0.0ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE "advert_selector_banners"."id" = ? LIMIT 1 [["id", 207249520]]
69878
+ Processing by ExamplesController#index as HTML
69879
+ [AdvertSelector] AdvertSelection initialized
69880
+ [AdvertSelector] AdvertSelection fetching banners and placements
69881
+ [AdvertSelector] AdvertSelector::Banner Load (0.2ms) SELECT "advert_selector_banners".* FROM "advert_selector_banners" WHERE (end_time > '2012-10-25 09:00:00.002177' OR end_time IS NULL) AND (start_time < '2012-10-25 10:00:00.002353' OR start_time IS NULL) AND (target_view_count IS NULL OR target_view_count > running_view_count) ORDER BY priority desc
69882
+ [AdvertSelector] AdvertSelector::Placement Load (0.1ms) SELECT "advert_selector_placements".* FROM "advert_selector_placements" WHERE "advert_selector_placements"."id" IN (718799085, 405688915)
69883
+ [AdvertSelector] AdvertSelector::HelperItem Load (0.1ms) SELECT "advert_selector_helper_items".* FROM "advert_selector_helper_items" WHERE "advert_selector_helper_items"."banner_id" IN (207249520, 394627963, 814558298) ORDER BY position
69884
+ [AdvertSelector] Showing banner Coke in placement Leaderboard
69885
+ [AdvertSelector] AdvertSelection finished
69886
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.4ms)
69887
+  (0.1ms) rollback transaction