acts_as_assets 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/acts_as_assets/assets_controller.rb +3 -3
- data/config/locales/it.yml +3 -2
- data/lib/acts_as_assets/base.rb +1 -1
- data/lib/acts_as_assets/version.rb +1 -1
- data/spec/acts_as_assets_spec.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +530 -0
- metadata +18 -16
@@ -15,14 +15,14 @@ class ActsAsAssets::AssetsController < ApplicationController
|
|
15
15
|
def create
|
16
16
|
name = root_model_name
|
17
17
|
klazz = ([name.pluralize.camelize] << camelize_type.flatten).join('::')
|
18
|
-
@asset = klazz.constantize.create
|
18
|
+
@asset = klazz.constantize.create(:asset => params[:file],
|
19
19
|
"#{name}".to_sym => instance_variable_get("@#{name}".to_sym))
|
20
20
|
|
21
21
|
respond_to do |format|
|
22
22
|
if @asset.valid?
|
23
23
|
format.js
|
24
24
|
else
|
25
|
-
format.js { render :json =>{:
|
25
|
+
format.js { render :json =>{:success => false, :errors => @asset.errors}}
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,7 +40,7 @@ class ActsAsAssets::AssetsController < ApplicationController
|
|
40
40
|
if error.nil?
|
41
41
|
format.js
|
42
42
|
else
|
43
|
-
format.js { render :json => {:
|
43
|
+
format.js { render :json => {:success => false, :errors => error}}
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
data/config/locales/it.yml
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
it:
|
2
|
+
acts_as_assets:
|
3
|
+
unique_asset_error: 'Un solo documento di questo tipo può essere caricato. Eliminare il file attuale per sostituirlo.'
|
data/lib/acts_as_assets/base.rb
CHANGED
@@ -20,7 +20,7 @@ module ActsAsAssets
|
|
20
20
|
|
21
21
|
belongs_to root_model
|
22
22
|
has_attached_file :asset,
|
23
|
-
:url => "/#{root_model.to_s.pluralize}/:acts_as_assets_root_id/assets/:acts_as_assets_asset_id",
|
23
|
+
:url => "/#{root_model.to_s.pluralize}/:acts_as_assets_root_id/assets/:acts_as_assets_asset_id/download",
|
24
24
|
:path => ":acts_as_assets_file_path/:acts_as_assets_file_name.:extension"
|
25
25
|
before_create :touch_counter
|
26
26
|
|
data/spec/acts_as_assets_spec.rb
CHANGED
@@ -106,7 +106,7 @@ describe "ActsAsAssets" do
|
|
106
106
|
b = book
|
107
107
|
doc = Books::Assets::TestDoc.create! :asset => jpg_test, :book => b
|
108
108
|
@dtbd << doc
|
109
|
-
doc.asset.url.should match /\/books\/#{b.id}\/assets\/#{doc.id}/
|
109
|
+
doc.asset.url.should match /\/books\/#{b.id}\/assets\/#{doc.id}\/download/
|
110
110
|
end
|
111
111
|
|
112
112
|
end
|
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -17378,3 +17378,533 @@ Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 4.7ms)
|
|
17378
17378
|
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books"[0m
|
17379
17379
|
[1m[35mSQL (3.9ms)[0m DELETE FROM "books_assets"
|
17380
17380
|
[1m[36mSQL (3.5ms)[0m [1mDELETE FROM "books"[0m
|
17381
|
+
[1m[36m (0.2ms)[0m [1mselect sqlite_version(*)[0m
|
17382
|
+
[1m[35m (3.2ms)[0m CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255))
|
17383
|
+
[1m[36m (3.7ms)[0m [1mCREATE TABLE "books_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "asset_file_name" varchar(255), "asset_content_type" varchar(255), "asset_file_size" integer, "asset_updated_at" datetime, "type" varchar(255), "counter" integer DEFAULT 0 NOT NULL, "book_id" integer) [0m
|
17384
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
17385
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books"[0m
|
17386
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
17387
|
+
[1m[36mSQL (4.1ms)[0m [1mDELETE FROM "books"[0m
|
17388
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
17389
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
17390
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
17391
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
17392
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
17393
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books"[0m
|
17394
|
+
[1m[35mSQL (3.5ms)[0m DELETE FROM "books_assets"
|
17395
|
+
[1m[36mSQL (3.1ms)[0m [1mDELETE FROM "books"[0m
|
17396
|
+
[1m[35mSQL (3.1ms)[0m DELETE FROM "books_assets"
|
17397
|
+
[1m[36mSQL (3.9ms)[0m [1mDELETE FROM "books"[0m
|
17398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17399
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17400
|
+
[1m[35m (3.7ms)[0m commit transaction
|
17401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17402
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 1
|
17403
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17404
|
+
[paperclip] Saving attachments.
|
17405
|
+
[1m[35m (2.6ms)[0m commit transaction
|
17406
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books_assets"[0m
|
17407
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books"
|
17408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17409
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17410
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
17411
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17412
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2[0m
|
17413
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17414
|
+
[paperclip] Saving attachments.
|
17415
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
17416
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
17417
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books"[0m
|
17418
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17419
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17420
|
+
[1m[35m (2.5ms)[0m commit transaction
|
17421
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17422
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 3
|
17423
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17424
|
+
[paperclip] Saving attachments.
|
17425
|
+
[1m[35m (2.6ms)[0m commit transaction
|
17426
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 3 LIMIT 1[0m
|
17427
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
17428
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books"[0m
|
17429
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17430
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17431
|
+
[1m[35m (2.3ms)[0m commit transaction
|
17432
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17433
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 4
|
17434
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17435
|
+
[paperclip] Saving attachments.
|
17436
|
+
[1m[35m (2.5ms)[0m commit transaction
|
17437
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 4 LIMIT 1[0m
|
17438
|
+
[1m[35mSQL (4.2ms)[0m DELETE FROM "books_assets"
|
17439
|
+
[1m[36mSQL (2.5ms)[0m [1mDELETE FROM "books"[0m
|
17440
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
17441
|
+
[1m[36mSQL (3.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
17442
|
+
[1m[35mSQL (2.4ms)[0m DELETE FROM "books"
|
17443
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17444
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
17445
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17446
|
+
[paperclip] Saving attachments.
|
17447
|
+
[1m[35m (2.3ms)[0m commit transaction
|
17448
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17449
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" IS NULL
|
17450
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["type", "Books::Assets::TestDoc"]]
|
17451
|
+
[paperclip] Saving attachments.
|
17452
|
+
[1m[35m (3.5ms)[0m commit transaction
|
17453
|
+
[1m[36mBooks::Asset Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1[0m [["id", 5]]
|
17454
|
+
[1m[35mBooks::Asset Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
|
17455
|
+
[1m[36mSQL (2.6ms)[0m [1mDELETE FROM "books_assets"[0m
|
17456
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books"
|
17457
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17458
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17459
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
17460
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17461
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5[0m
|
17462
|
+
[1m[35mSQL (34.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 5], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17463
|
+
[paperclip] Saving attachments.
|
17464
|
+
[paperclip] saving public/system/books/5/assets/test_doc.jpg
|
17465
|
+
[1m[36m (55.4ms)[0m [1mcommit transaction[0m
|
17466
|
+
[1m[35mSQL (366.0ms)[0m DELETE FROM "books_assets"
|
17467
|
+
[1m[36mSQL (33.1ms)[0m [1mDELETE FROM "books"[0m
|
17468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17469
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17470
|
+
[1m[35m (2.5ms)[0m commit transaction
|
17471
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17472
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 6
|
17473
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 6], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17474
|
+
[paperclip] Saving attachments.
|
17475
|
+
[paperclip] saving public/system/books/6/assets/test_doc.jpg
|
17476
|
+
[1m[35m (5.8ms)[0m commit transaction
|
17477
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17478
|
+
[paperclip] Scheduling attachments for deletion.
|
17479
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 5]]
|
17480
|
+
[paperclip] Deleting attachments.
|
17481
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17482
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17483
|
+
[paperclip] Scheduling attachments for deletion.
|
17484
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 6]]
|
17485
|
+
[paperclip] Deleting attachments.
|
17486
|
+
[1m[35m (0.0ms)[0m commit transaction
|
17487
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17488
|
+
[paperclip] Scheduling attachments for deletion.
|
17489
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 7]]
|
17490
|
+
[paperclip] Deleting attachments.
|
17491
|
+
[paperclip] deleting public/system/books/5/assets/test_doc.jpg
|
17492
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17493
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17494
|
+
[paperclip] Scheduling attachments for deletion.
|
17495
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 8]]
|
17496
|
+
[paperclip] Deleting attachments.
|
17497
|
+
[paperclip] deleting public/system/books/6/assets/test_doc.jpg
|
17498
|
+
[1m[35m (5.4ms)[0m commit transaction
|
17499
|
+
[1m[36mSQL (4.3ms)[0m [1mDELETE FROM "books_assets"[0m
|
17500
|
+
[1m[35mSQL (5.0ms)[0m DELETE FROM "books"
|
17501
|
+
[1m[36mSQL (6.1ms)[0m [1mDELETE FROM "books_assets"[0m
|
17502
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books"
|
17503
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17504
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17505
|
+
[1m[36m (6.2ms)[0m [1mcommit transaction[0m
|
17506
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17507
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 7[0m
|
17508
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 7], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17509
|
+
[paperclip] Saving attachments.
|
17510
|
+
[paperclip] saving public/system/books/7/assets/test_doc.jpg
|
17511
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
17512
|
+
Processing by Books::AssetsController#index as HTML
|
17513
|
+
Parameters: {"book_id"=>"7", "type"=>"Assets/TestDoc"}
|
17514
|
+
[1m[35mBook Load (0.3ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "7"]]
|
17515
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '7'[0m
|
17516
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = 7 LIMIT 1
|
17517
|
+
Completed 200 OK in 113ms (Views: 109.8ms | ActiveRecord: 0.8ms)
|
17518
|
+
[1m[36mSQL (3.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
17519
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books"
|
17520
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17521
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17522
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
17523
|
+
Processing by Books::AssetsController#index as HTML
|
17524
|
+
Parameters: {"book_id"=>"8", "type"=>"Assets/TestDoc"}
|
17525
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "8"]]
|
17526
|
+
[1m[36mBooks::Assets::TestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '8'[0m
|
17527
|
+
Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.3ms)
|
17528
|
+
[1m[35mSQL (3.4ms)[0m DELETE FROM "books_assets"
|
17529
|
+
[1m[36mSQL (4.2ms)[0m [1mDELETE FROM "books"[0m
|
17530
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17531
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17532
|
+
[1m[35m (2.4ms)[0m commit transaction
|
17533
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17534
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9
|
17535
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 9], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17536
|
+
[paperclip] Saving attachments.
|
17537
|
+
[paperclip] saving public/system/books/9/assets/test_doc.jpg
|
17538
|
+
[1m[35m (2.5ms)[0m commit transaction
|
17539
|
+
Processing by Books::AssetsController#index as HTML
|
17540
|
+
Parameters: {"target"=>"target_div", "book_id"=>"9", "type"=>"Assets/TestDoc"}
|
17541
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "9"]]
|
17542
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '9'
|
17543
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 9 LIMIT 1[0m
|
17544
|
+
Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
|
17545
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
17546
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
17547
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17548
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17549
|
+
[1m[35m (2.4ms)[0m commit transaction
|
17550
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17551
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
|
17552
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 10], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17553
|
+
[paperclip] Saving attachments.
|
17554
|
+
[paperclip] saving public/system/books/10/assets/test_doc.jpg
|
17555
|
+
[1m[35m (2.6ms)[0m commit transaction
|
17556
|
+
Processing by Books::AssetsController#index as HTML
|
17557
|
+
Parameters: {"target"=>"target_div", "book_id"=>"10", "type"=>"Assets/TestDoc"}
|
17558
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "10"]]
|
17559
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '10'
|
17560
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 10 LIMIT 1[0m
|
17561
|
+
Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.5ms)
|
17562
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
17563
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|
17564
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17565
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17566
|
+
[1m[35m (2.2ms)[0m commit transaction
|
17567
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17568
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
|
17569
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 11], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17570
|
+
[paperclip] Saving attachments.
|
17571
|
+
[paperclip] saving public/system/books/11/assets/test_doc.jpg
|
17572
|
+
[1m[35m (2.6ms)[0m commit transaction
|
17573
|
+
Processing by Books::AssetsController#index as HTML
|
17574
|
+
Parameters: {"target"=>"target_div", "book_id"=>"11", "type"=>"Assets/TestDoc"}
|
17575
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "11"]]
|
17576
|
+
[1m[35mBooks::Assets::TestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '11'
|
17577
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 11 LIMIT 1[0m
|
17578
|
+
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
|
17579
|
+
[1m[35mSQL (31.6ms)[0m DELETE FROM "books_assets"
|
17580
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
17581
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17582
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17583
|
+
[1m[35m (3.4ms)[0m commit transaction
|
17584
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17585
|
+
[1m[35m (0.3ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
|
17586
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 12], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17587
|
+
[paperclip] Saving attachments.
|
17588
|
+
[paperclip] saving public/system/books/12/assets/test_doc.jpg
|
17589
|
+
[1m[35m (2.5ms)[0m commit transaction
|
17590
|
+
Processing by Books::AssetsController#index as HTML
|
17591
|
+
Parameters: {"target"=>"target_div", "book_id"=>"12", "type"=>"Assets/TestDoc"}
|
17592
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "12"]]
|
17593
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '12'
|
17594
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 12 LIMIT 1[0m
|
17595
|
+
Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.7ms)
|
17596
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
17597
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
17598
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17599
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17600
|
+
[1m[35m (4.2ms)[0m commit transaction
|
17601
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17602
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
|
17603
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:00 UTC +00:00], ["book_id", 13], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17604
|
+
[paperclip] Saving attachments.
|
17605
|
+
[paperclip] saving public/system/books/13/assets/test_doc.jpg
|
17606
|
+
[1m[35m (2.6ms)[0m commit transaction
|
17607
|
+
Processing by Books::AssetsController#index as JSON
|
17608
|
+
Parameters: {"target"=>"target_div", "book_id"=>"13", "type"=>"Assets/TestDoc"}
|
17609
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "13"]]
|
17610
|
+
[1m[35mBooks::Assets::TestDoc Load (0.3ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '13'
|
17611
|
+
Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.5ms)
|
17612
|
+
[1m[36mSQL (3.8ms)[0m [1mDELETE FROM "books_assets"[0m
|
17613
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books"
|
17614
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17615
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17616
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
17617
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17618
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14[0m
|
17619
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 14], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17620
|
+
[paperclip] Saving attachments.
|
17621
|
+
[paperclip] saving public/system/books/14/assets/test_doc.jpg
|
17622
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
17623
|
+
Processing by Books::AssetsController#index as JSON
|
17624
|
+
Parameters: {"target"=>"target_div", "book_id"=>"14", "type"=>"Assets/TestDoc"}
|
17625
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
|
17626
|
+
[1m[36mBooks::Assets::TestDoc Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = '14'[0m
|
17627
|
+
Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.6ms)
|
17628
|
+
[1m[35mSQL (2.7ms)[0m DELETE FROM "books_assets"
|
17629
|
+
[1m[36mSQL (2.3ms)[0m [1mDELETE FROM "books"[0m
|
17630
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17631
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17632
|
+
[1m[35m (2.2ms)[0m commit transaction
|
17633
|
+
Processing by Books::AssetsController#create as JS
|
17634
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fb850c9dde8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120214-17861-mhfom4>>, "book_id"=>"15", "type"=>"Assets/TestDoc"}
|
17635
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "15"]]
|
17636
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17637
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15[0m
|
17638
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 15], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17639
|
+
[paperclip] Saving attachments.
|
17640
|
+
[paperclip] saving public/system/books/15/assets/test_doc.jpg
|
17641
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
17642
|
+
Completed 200 OK in 26ms (Views: 5.3ms | ActiveRecord: 3.5ms)
|
17643
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books_assets"
|
17644
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
17645
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17646
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17647
|
+
[1m[35m (2.9ms)[0m commit transaction
|
17648
|
+
Processing by Books::AssetsController#create as JS
|
17649
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fb852971870 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120214-17861-jy9kc4>>, "book_id"=>"16", "type"=>"Assets/TestDoc"}
|
17650
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "16"]]
|
17651
|
+
[1m[35m (0.2ms)[0m begin transaction
|
17652
|
+
[1m[36m (0.3ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16[0m
|
17653
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 16], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17654
|
+
[paperclip] Saving attachments.
|
17655
|
+
[paperclip] saving public/system/books/16/assets/test_doc.jpg
|
17656
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
17657
|
+
Completed 200 OK in 89ms (Views: 0.7ms | ActiveRecord: 3.6ms)
|
17658
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
17659
|
+
[1m[36mSQL (3.6ms)[0m [1mDELETE FROM "books"[0m
|
17660
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17661
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17662
|
+
[1m[35m (2.9ms)[0m commit transaction
|
17663
|
+
Processing by Books::AssetsController#create as JS
|
17664
|
+
Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fb853cc2d20 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120214-17861-qm0sl5>>, "book_id"=>"17", "type"=>"Assets/TestDoc"}
|
17665
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "17"]]
|
17666
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17667
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17[0m
|
17668
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 17], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17669
|
+
[paperclip] Saving attachments.
|
17670
|
+
[paperclip] saving public/system/books/17/assets/test_doc.jpg
|
17671
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
17672
|
+
Completed 200 OK in 19ms (Views: 1.0ms | ActiveRecord: 3.5ms)
|
17673
|
+
[1m[35mSQL (3.9ms)[0m DELETE FROM "books_assets"
|
17674
|
+
[1m[36mSQL (2.9ms)[0m [1mDELETE FROM "books"[0m
|
17675
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17676
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17677
|
+
[1m[35m (4.6ms)[0m commit transaction
|
17678
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17679
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
|
17680
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 18], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17681
|
+
[paperclip] Saving attachments.
|
17682
|
+
[paperclip] saving public/system/books/18/assets/test_doc.jpg
|
17683
|
+
[1m[35m (3.6ms)[0m commit transaction
|
17684
|
+
Processing by Books::AssetsController#destroy as JS
|
17685
|
+
Parameters: {"target"=>"target_div", "book_id"=>"18", "asset_id"=>"19"}
|
17686
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "18"]]
|
17687
|
+
[1m[35mBooks::Asset Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."book_id" = 18 AND "books_assets"."id" = '19' LIMIT 1
|
17688
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17689
|
+
[paperclip] Scheduling attachments for deletion.
|
17690
|
+
[1m[35mBook Load (0.2ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = 18 LIMIT 1
|
17691
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 19]]
|
17692
|
+
[paperclip] Deleting attachments.
|
17693
|
+
[paperclip] deleting public/system/books/18/assets/test_doc.jpg
|
17694
|
+
[1m[35m (2.6ms)[0m commit transaction
|
17695
|
+
Completed 200 OK in 34ms (Views: 2.2ms | ActiveRecord: 3.6ms)
|
17696
|
+
[1m[36mSQL (2.7ms)[0m [1mDELETE FROM "books_assets"[0m
|
17697
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books"
|
17698
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17699
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17700
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
17701
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17702
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19[0m
|
17703
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 19], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17704
|
+
[paperclip] Saving attachments.
|
17705
|
+
[paperclip] saving public/system/books/19/assets/test_doc.jpg
|
17706
|
+
[1m[36m (4.2ms)[0m [1mcommit transaction[0m
|
17707
|
+
Processing by Books::AssetsController#destroy as JS
|
17708
|
+
Parameters: {"target"=>"target_div", "book_id"=>"19", "asset_id"=>"20"}
|
17709
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
|
17710
|
+
[1m[36mBooks::Asset Load (0.3ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."book_id" = 19 AND "books_assets"."id" = '20' LIMIT 1[0m
|
17711
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17712
|
+
[paperclip] Scheduling attachments for deletion.
|
17713
|
+
[1m[36mBook Load (0.2ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 19 LIMIT 1[0m
|
17714
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 20]]
|
17715
|
+
[paperclip] Deleting attachments.
|
17716
|
+
[paperclip] deleting public/system/books/19/assets/test_doc.jpg
|
17717
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
17718
|
+
Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 3.8ms)
|
17719
|
+
[1m[35mSQL (2.6ms)[0m DELETE FROM "books_assets"
|
17720
|
+
[1m[36mSQL (4.1ms)[0m [1mDELETE FROM "books"[0m
|
17721
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17722
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17723
|
+
[1m[35m (12.9ms)[0m commit transaction
|
17724
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17725
|
+
[1m[35m (0.2ms)[0m SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
|
17726
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 20], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17727
|
+
[paperclip] Saving attachments.
|
17728
|
+
[paperclip] saving public/system/books/20/assets/test_doc.jpg
|
17729
|
+
[1m[35m (2.9ms)[0m commit transaction
|
17730
|
+
Processing by Books::AssetsController#destroy as JS
|
17731
|
+
Parameters: {"target"=>"target_div", "book_id"=>"20", "asset_id"=>"21"}
|
17732
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1[0m [["id", "20"]]
|
17733
|
+
[1m[35mBooks::Asset Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."book_id" = 20 AND "books_assets"."id" = '21' LIMIT 1
|
17734
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17735
|
+
[paperclip] Scheduling attachments for deletion.
|
17736
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = 20 LIMIT 1
|
17737
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 21]]
|
17738
|
+
[paperclip] Deleting attachments.
|
17739
|
+
[paperclip] deleting public/system/books/20/assets/test_doc.jpg
|
17740
|
+
[1m[35m (4.4ms)[0m commit transaction
|
17741
|
+
Completed 200 OK in 14ms (Views: 0.9ms | ActiveRecord: 5.1ms)
|
17742
|
+
[1m[36mSQL (6.0ms)[0m [1mDELETE FROM "books_assets"[0m
|
17743
|
+
[1m[35mSQL (3.3ms)[0m DELETE FROM "books"
|
17744
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17746
|
+
[1m[36m (3.5ms)[0m [1mcommit transaction[0m
|
17747
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17748
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21[0m
|
17749
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 5267], ["asset_updated_at", Tue, 14 Feb 2012 14:16:01 UTC +00:00], ["book_id", 21], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17750
|
+
[paperclip] Saving attachments.
|
17751
|
+
[paperclip] saving public/system/books/21/assets/test_doc.jpg
|
17752
|
+
[1m[36m (3.2ms)[0m [1mcommit transaction[0m
|
17753
|
+
Processing by Books::AssetsController#destroy as JS
|
17754
|
+
Parameters: {"target"=>"target_div", "book_id"=>"21", "asset_id"=>"22"}
|
17755
|
+
[1m[35mBook Load (0.1ms)[0m SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
|
17756
|
+
[1m[36mBooks::Asset Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."book_id" = 21 AND "books_assets"."id" = '22' LIMIT 1[0m
|
17757
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17758
|
+
[paperclip] Scheduling attachments for deletion.
|
17759
|
+
[1m[36mBook Load (0.1ms)[0m [1mSELECT "books".* FROM "books" WHERE "books"."id" = 21 LIMIT 1[0m
|
17760
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 22]]
|
17761
|
+
[paperclip] Deleting attachments.
|
17762
|
+
[paperclip] deleting public/system/books/21/assets/test_doc.jpg
|
17763
|
+
[1m[36m (3.7ms)[0m [1mcommit transaction[0m
|
17764
|
+
Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 4.7ms)
|
17765
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17766
|
+
[paperclip] Scheduling attachments for deletion.
|
17767
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 9]]
|
17768
|
+
[paperclip] Deleting attachments.
|
17769
|
+
[paperclip] deleting public/system/books/7/assets/test_doc.jpg
|
17770
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17771
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17772
|
+
[paperclip] Scheduling attachments for deletion.
|
17773
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 10]]
|
17774
|
+
[paperclip] Deleting attachments.
|
17775
|
+
[paperclip] deleting public/system/books/9/assets/test_doc.jpg
|
17776
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
17777
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17778
|
+
[paperclip] Scheduling attachments for deletion.
|
17779
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 11]]
|
17780
|
+
[paperclip] Deleting attachments.
|
17781
|
+
[paperclip] deleting public/system/books/10/assets/test_doc.jpg
|
17782
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17783
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17784
|
+
[paperclip] Scheduling attachments for deletion.
|
17785
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 12]]
|
17786
|
+
[paperclip] Deleting attachments.
|
17787
|
+
[paperclip] deleting public/system/books/11/assets/test_doc.jpg
|
17788
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17789
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17790
|
+
[paperclip] Scheduling attachments for deletion.
|
17791
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 13]]
|
17792
|
+
[paperclip] Deleting attachments.
|
17793
|
+
[paperclip] deleting public/system/books/12/assets/test_doc.jpg
|
17794
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17795
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17796
|
+
[paperclip] Scheduling attachments for deletion.
|
17797
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 14]]
|
17798
|
+
[paperclip] Deleting attachments.
|
17799
|
+
[paperclip] deleting public/system/books/13/assets/test_doc.jpg
|
17800
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17801
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17802
|
+
[paperclip] Scheduling attachments for deletion.
|
17803
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 15]]
|
17804
|
+
[paperclip] Deleting attachments.
|
17805
|
+
[paperclip] deleting public/system/books/14/assets/test_doc.jpg
|
17806
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17807
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17808
|
+
[paperclip] Scheduling attachments for deletion.
|
17809
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 16]]
|
17810
|
+
[paperclip] Deleting attachments.
|
17811
|
+
[paperclip] deleting public/system/books/15/assets/test_doc.jpg
|
17812
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17813
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17814
|
+
[paperclip] Scheduling attachments for deletion.
|
17815
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 17]]
|
17816
|
+
[paperclip] Deleting attachments.
|
17817
|
+
[paperclip] deleting public/system/books/16/assets/test_doc.jpg
|
17818
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17819
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17820
|
+
[paperclip] Scheduling attachments for deletion.
|
17821
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 18]]
|
17822
|
+
[paperclip] Deleting attachments.
|
17823
|
+
[paperclip] deleting public/system/books/17/assets/test_doc.jpg
|
17824
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17825
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17826
|
+
[paperclip] Scheduling attachments for deletion.
|
17827
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 19]]
|
17828
|
+
[paperclip] Deleting attachments.
|
17829
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17831
|
+
[paperclip] Scheduling attachments for deletion.
|
17832
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 20]]
|
17833
|
+
[paperclip] Deleting attachments.
|
17834
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17835
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17836
|
+
[paperclip] Scheduling attachments for deletion.
|
17837
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 21]]
|
17838
|
+
[paperclip] Deleting attachments.
|
17839
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17840
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17841
|
+
[paperclip] Scheduling attachments for deletion.
|
17842
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 22]]
|
17843
|
+
[paperclip] Deleting attachments.
|
17844
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
17845
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
17846
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|
17847
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
17848
|
+
[1m[36mSQL (2.4ms)[0m [1mDELETE FROM "books"[0m
|
17849
|
+
[1m[35mSQL (4.2ms)[0m DELETE FROM "books_assets"
|
17850
|
+
[1m[36mSQL (3.8ms)[0m [1mDELETE FROM "books"[0m
|
17851
|
+
[1m[35mSQL (4.6ms)[0m DELETE FROM "books_assets"
|
17852
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books"[0m
|
17853
|
+
[1m[35mSQL (2.8ms)[0m DELETE FROM "books_assets"
|
17854
|
+
[1m[36mSQL (4.0ms)[0m [1mDELETE FROM "books"[0m
|
17855
|
+
[1m[35mSQL (2.9ms)[0m DELETE FROM "books_assets"
|
17856
|
+
[1m[36mSQL (3.3ms)[0m [1mDELETE FROM "books"[0m
|
17857
|
+
[1m[35mSQL (3.7ms)[0m DELETE FROM "books_assets"
|
17858
|
+
[1m[36mSQL (4.8ms)[0m [1mDELETE FROM "books"[0m
|
17859
|
+
[1m[35mSQL (4.7ms)[0m DELETE FROM "books_assets"
|
17860
|
+
[1m[36mSQL (3.2ms)[0m [1mDELETE FROM "books"[0m
|
17861
|
+
[1m[35mSQL (4.2ms)[0m DELETE FROM "books_assets"
|
17862
|
+
[1m[36mSQL (3.0ms)[0m [1mDELETE FROM "books"[0m
|
17863
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17864
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "books" ("title") VALUES (?)[0m [["title", "my new book"]]
|
17865
|
+
[1m[35m (4.3ms)[0m commit transaction
|
17866
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17867
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 22 LIMIT 1
|
17868
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 22[0m
|
17869
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 22], ["counter", 1], ["type", "Books::Assets::UniqueTestDoc"]]
|
17870
|
+
[paperclip] Saving attachments.
|
17871
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
17872
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17873
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 22 LIMIT 1[0m
|
17874
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
17875
|
+
[1m[36mBooks::Assets::UniqueTestDoc Load (0.2ms)[0m [1mSELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 22 LIMIT 1[0m
|
17876
|
+
[1m[35mBooks::Assets::UniqueTestDoc Load (0.1ms)[0m SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 22 LIMIT 1
|
17877
|
+
[1m[36mSQL (4.4ms)[0m [1mDELETE FROM "books_assets"[0m
|
17878
|
+
[1m[35mSQL (4.4ms)[0m DELETE FROM "books"
|
17879
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17880
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
|
17881
|
+
[1m[36m (4.4ms)[0m [1mcommit transaction[0m
|
17882
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17883
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23[0m
|
17884
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 23], ["counter", 1], ["type", "Books::Assets::TestDoc"]]
|
17885
|
+
[paperclip] Saving attachments.
|
17886
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
17887
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17888
|
+
[1m[36m (0.2ms)[0m [1mSELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23[0m
|
17889
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "type") VALUES (?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 23], ["counter", 2], ["type", "Books::Assets::TestDoc"]]
|
17890
|
+
[paperclip] Saving attachments.
|
17891
|
+
[1m[36m (3.8ms)[0m [1mcommit transaction[0m
|
17892
|
+
[1m[35m (0.1ms)[0m begin transaction
|
17893
|
+
[paperclip] Scheduling attachments for deletion.
|
17894
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."id" = ?[0m [["id", 23]]
|
17895
|
+
[paperclip] Deleting attachments.
|
17896
|
+
[1m[35m (0.1ms)[0m commit transaction
|
17897
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17898
|
+
[paperclip] Scheduling attachments for deletion.
|
17899
|
+
[paperclip] Deleting attachments.
|
17900
|
+
[1m[35m (0.0ms)[0m commit transaction
|
17901
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
17902
|
+
[paperclip] Scheduling attachments for deletion.
|
17903
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 24]]
|
17904
|
+
[paperclip] Deleting attachments.
|
17905
|
+
[1m[36m (5.8ms)[0m [1mcommit transaction[0m
|
17906
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17907
|
+
[paperclip] Scheduling attachments for deletion.
|
17908
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ?[0m [["id", 25]]
|
17909
|
+
[paperclip] Deleting attachments.
|
17910
|
+
[1m[35m (2.9ms)[0m commit transaction
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-15 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70093618686820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70093618686820
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: paperclip
|
27
|
-
requirement: &
|
27
|
+
requirement: &70093618686400 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70093618686400
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sqlite3
|
38
|
-
requirement: &
|
38
|
+
requirement: &70093618685940 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70093618685940
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70093618685520 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70093618685520
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: paperclip
|
60
|
-
requirement: &
|
60
|
+
requirement: &70093618685100 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70093618685100
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: shoulda-matchers
|
71
|
-
requirement: &
|
71
|
+
requirement: &70093618684680 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70093618684680
|
80
80
|
description: ''
|
81
81
|
email:
|
82
82
|
- acampolonghi@gmail.com
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- spec/dummy/config/routes.rb
|
126
126
|
- spec/dummy/config.ru
|
127
127
|
- spec/dummy/db/development.sqlite3
|
128
|
+
- spec/dummy/db/test.sqlite3
|
128
129
|
- spec/dummy/log/development.log
|
129
130
|
- spec/dummy/log/test.log
|
130
131
|
- spec/dummy/public/404.html
|
@@ -158,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
159
|
version: '0'
|
159
160
|
segments:
|
160
161
|
- 0
|
161
|
-
hash:
|
162
|
+
hash: -463942544642964676
|
162
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
164
|
none: false
|
164
165
|
requirements:
|
@@ -167,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
version: '0'
|
168
169
|
segments:
|
169
170
|
- 0
|
170
|
-
hash:
|
171
|
+
hash: -463942544642964676
|
171
172
|
requirements: []
|
172
173
|
rubyforge_project:
|
173
174
|
rubygems_version: 1.8.10
|
@@ -199,6 +200,7 @@ test_files:
|
|
199
200
|
- spec/dummy/config/routes.rb
|
200
201
|
- spec/dummy/config.ru
|
201
202
|
- spec/dummy/db/development.sqlite3
|
203
|
+
- spec/dummy/db/test.sqlite3
|
202
204
|
- spec/dummy/log/development.log
|
203
205
|
- spec/dummy/log/test.log
|
204
206
|
- spec/dummy/public/404.html
|