acts_as_assets 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,11 +4,11 @@ module ActsAsAssets::AssetsHelper
4
4
  end
5
5
 
6
6
  def destroy_file_path(asset, model)
7
- destroy_path(asset, model, asset_target, @type)
7
+ destroy_path(asset, model, asset_target(model), @type)
8
8
  end
9
9
 
10
- def asset_target
11
- @type.gsub(/\//, '_')
10
+ def asset_target model
11
+ @type.gsub(/\//, '_') + "_#{model.id}"
12
12
  end
13
13
 
14
14
  def destroy_path(asset, model, target, type)
@@ -39,8 +39,8 @@ module ActsAsAssets::AssetsHelper
39
39
  defined?(type_label).nil? ? @type.split('/').last.to_s.humanize : type_label
40
40
  end
41
41
 
42
- def upload_complete_js_function
43
- "function(id, fileName, responseJSON, qq){K.allegati.onComplete(id, fileName, responseJSON, qq,'#{asset_target}');}"
42
+ def upload_complete_js_function model
43
+ "function(id, fileName, responseJSON, qq){K.allegati.onComplete(id, fileName, responseJSON, qq,'#{asset_target(model)}');}"
44
44
  end
45
45
  def asset_action(model)
46
46
  prefix = model.to_model.class.to_s.underscore.gsub(/\//, '_')
@@ -48,8 +48,8 @@ module ActsAsAssets::AssetsHelper
48
48
  self.send(method_name, model, :type => @type, :format => :js)
49
49
  end
50
50
 
51
- def asset_id
52
- asset_target
51
+ def asset_id model
52
+ asset_target model
53
53
  end
54
54
 
55
55
  def asset_file_name(asset)
@@ -1,6 +1,6 @@
1
1
  <%# encoding: utf-8 %>
2
2
  <% assets ||= @assets %>
3
- <div id="<%=asset_id%>" class="multiple assets">
3
+ <div id="<%= asset_id(model) %>" class="multiple assets">
4
4
  <%= render :partial => "acts_as_assets/assets/upload_link", :locals => {:multiple => true, :model => model} unless read_only %>
5
5
  <%= render :partial => "acts_as_assets/assets/assets", :locals => {:assets => Array(assets), :model => model, read_only: read_only} %>
6
6
  </div>
@@ -1,6 +1,6 @@
1
1
  <%# encoding: utf-8 %>
2
2
  <% assets ||= @assets %>
3
- <div id="<%= asset_id %>" class="assets">
3
+ <div id="<%= asset_id(model) %>" class="assets">
4
4
  <% if Array(assets).empty? %>
5
5
  <% unless read_only %>
6
6
  <%= render :partial => "acts_as_assets/assets/upload_link", :locals => {:multiple => false, :model => model} %>
@@ -1,6 +1,6 @@
1
- <%= uploader_field_tag asset_target,
1
+ <%= uploader_field_tag asset_target(model),
2
2
  :action => asset_action(model),
3
3
  :uploadButtonText => t('aggiungi'),
4
4
  :multiple => multiple,
5
- :params => {:authenticity_token => form_authenticity_token, :target => asset_target},
6
- :onComplete => upload_complete_js_function %>
5
+ :params => {:authenticity_token => form_authenticity_token, :target => asset_target(model)},
6
+ :onComplete => upload_complete_js_function(model) %>
@@ -1 +1 @@
1
- {"asset_id": "<%= asset_id %>","body": "<%= assets_body %>","success": true}
1
+ {"asset_id": "<%= asset_id(@model) %>","body": "<%= assets_body %>","success": true}
@@ -1 +1 @@
1
- $("#<%= asset_id %>").html("<%= assets_body %>");
1
+ $("#<%= asset_id(@model) %>").html("<%= assets_body %>");
@@ -1,3 +1,3 @@
1
1
  module ActsAsAssets
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
Binary file
@@ -29976,3 +29976,1381 @@ Completed 404 Not Found in 49ms (Views: 5.0ms | ActiveRecord: 0.1ms)
29976
29976
  SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
29977
29977
  [paperclip] Saving attachments.
29978
29978
   (2.6ms) commit transaction
29979
+ Connecting to database specified by database.yml
29980
+  (0.1ms) select sqlite_version(*)
29981
+  (3.7ms) DROP TABLE "books"
29982
+  (3.1ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) 
29983
+  (6.7ms) DROP TABLE "books_assets"
29984
+  (4.8ms) CREATE 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, "displayable" boolean DEFAULT 'f' NOT NULL) 
29985
+  (3.2ms) DROP TABLE "chapters"
29986
+  (3.0ms) CREATE TABLE "chapters" ("name" varchar(255) NOT NULL) 
29987
+  (3.1ms) DROP TABLE "chapters_assets"
29988
+  (3.1ms) CREATE TABLE "chapters_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, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) 
29989
+  (2.7ms) DROP TABLE "rt_tipi_pannello"
29990
+  (3.1ms) CREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) 
29991
+  (3.0ms) DROP TABLE "rt_tipi_pannello_assets"
29992
+  (3.2ms) CREATE TABLE "rt_tipi_pannello_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, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) 
29993
+ SQL (7.2ms) DELETE FROM "books_assets"
29994
+ SQL (3.0ms) DELETE FROM "books_assets"
29995
+ SQL (3.4ms) DELETE FROM "books"
29996
+ SQL (3.5ms) DELETE FROM "books_assets"
29997
+ SQL (3.2ms) DELETE FROM "books_assets"
29998
+ SQL (4.4ms) DELETE FROM "books"
29999
+ SQL (4.3ms) DELETE FROM "books_assets"
30000
+ SQL (3.1ms) DELETE FROM "books_assets"
30001
+ SQL (2.9ms) DELETE FROM "books"
30002
+ SQL (3.3ms) DELETE FROM "books_assets"
30003
+ SQL (3.1ms) DELETE FROM "books_assets"
30004
+ SQL (3.7ms) DELETE FROM "books"
30005
+ SQL (3.2ms) DELETE FROM "books_assets"
30006
+ SQL (3.8ms) DELETE FROM "books_assets"
30007
+ SQL (3.4ms) DELETE FROM "books"
30008
+ SQL (2.7ms) DELETE FROM "books_assets"
30009
+ SQL (3.5ms) DELETE FROM "books_assets"
30010
+ SQL (4.0ms) DELETE FROM "books"
30011
+ SQL (3.8ms) DELETE FROM "books_assets"
30012
+ SQL (2.9ms) DELETE FROM "books_assets"
30013
+ SQL (4.9ms) DELETE FROM "books"
30014
+ SQL (3.2ms) DELETE FROM "books_assets"
30015
+ SQL (3.1ms) DELETE FROM "books_assets"
30016
+ SQL (2.9ms) DELETE FROM "books"
30017
+ SQL (4.3ms) DELETE FROM "books_assets"
30018
+ SQL (3.2ms) DELETE FROM "books_assets"
30019
+ SQL (2.8ms) DELETE FROM "books"
30020
+ SQL (3.4ms) DELETE FROM "books_assets"
30021
+ SQL (3.1ms) DELETE FROM "books_assets"
30022
+ SQL (3.7ms) DELETE FROM "books"
30023
+  (0.1ms) begin transaction
30024
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30025
+  (3.6ms) commit transaction
30026
+  (0.1ms) begin transaction
30027
+  (0.3ms) 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
30028
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30029
+ [paperclip] Saving attachments.
30030
+  (3.5ms) commit transaction
30031
+ SQL (3.5ms) DELETE FROM "books_assets"
30032
+ SQL (2.7ms) DELETE FROM "books_assets"
30033
+ SQL (4.7ms) DELETE FROM "books"
30034
+  (0.1ms) begin transaction
30035
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30036
+  (3.3ms) commit transaction
30037
+  (0.1ms) begin transaction
30038
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
30039
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30040
+ [paperclip] Saving attachments.
30041
+  (2.9ms) commit transaction
30042
+ SQL (4.4ms) DELETE FROM "books_assets"
30043
+ SQL (3.3ms) DELETE FROM "books_assets"
30044
+ SQL (2.7ms) DELETE FROM "books"
30045
+  (0.1ms) begin transaction
30046
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30047
+  (4.4ms) commit transaction
30048
+  (0.0ms) begin transaction
30049
+  (0.2ms) 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
30050
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30051
+ [paperclip] Saving attachments.
30052
+  (3.9ms) commit transaction
30053
+ SQL (3.4ms) DELETE FROM "books_assets"
30054
+ SQL (4.5ms) DELETE FROM "books_assets"
30055
+ SQL (3.3ms) DELETE FROM "books"
30056
+  (0.1ms) begin transaction
30057
+ SQL (0.4ms) INSERT INTO "rt_tipi_pannello" ("name") VALUES (?) [["name", "Suntech STP"]]
30058
+  (3.8ms) commit transaction
30059
+  (0.1ms) begin transaction
30060
+ TipiPannello::Documenti::SchedaTecnica Load (0.3ms) SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
30061
+  (0.1ms) SELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'
30062
+ SQL (51.7ms) INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
30063
+ [paperclip] Saving attachments.
30064
+  (3.4ms) commit transaction
30065
+ SQL (3.0ms) DELETE FROM "books_assets"
30066
+ SQL (2.6ms) DELETE FROM "books_assets"
30067
+ SQL (2.7ms) DELETE FROM "books"
30068
+  (0.1ms) begin transaction
30069
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30070
+  (2.6ms) commit transaction
30071
+  (0.0ms) begin transaction
30072
+  (0.3ms) 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
30073
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30074
+ [paperclip] Saving attachments.
30075
+  (2.6ms) commit transaction
30076
+ SQL (3.1ms) DELETE FROM "books_assets"
30077
+ SQL (2.7ms) DELETE FROM "books_assets"
30078
+ SQL (3.2ms) DELETE FROM "books"
30079
+ SQL (5.8ms) DELETE FROM "books_assets"
30080
+ SQL (3.2ms) DELETE FROM "books_assets"
30081
+ SQL (3.4ms) DELETE FROM "books"
30082
+  (0.3ms) 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
30083
+ SQL (3.3ms) DELETE FROM "books_assets"
30084
+ SQL (4.0ms) DELETE FROM "books_assets"
30085
+ SQL (3.4ms) DELETE FROM "books"
30086
+  (0.1ms) begin transaction
30087
+  (0.2ms) 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
30088
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30089
+ [paperclip] Saving attachments.
30090
+  (2.7ms) commit transaction
30091
+  (0.0ms) begin transaction
30092
+  (0.3ms) 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
30093
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30094
+ [paperclip] Saving attachments.
30095
+  (3.8ms) commit transaction
30096
+ Books::Asset Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
30097
+ Books::Asset Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
30098
+ SQL (3.7ms) DELETE FROM "books_assets"
30099
+ SQL (3.3ms) DELETE FROM "books_assets"
30100
+ SQL (4.1ms) DELETE FROM "books"
30101
+  (0.1ms) begin transaction
30102
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30103
+  (4.0ms) commit transaction
30104
+  (0.1ms) begin transaction
30105
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
30106
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30107
+ [paperclip] Saving attachments.
30108
+  (2.9ms) commit transaction
30109
+ SQL (3.1ms) DELETE FROM "books_assets"
30110
+ SQL (2.8ms) DELETE FROM "books_assets"
30111
+ SQL (2.9ms) DELETE FROM "books"
30112
+  (0.1ms) begin transaction
30113
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30114
+  (2.8ms) commit transaction
30115
+  (0.1ms) begin transaction
30116
+  (0.3ms) 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
30117
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30118
+ [paperclip] Saving attachments.
30119
+  (3.2ms) commit transaction
30120
+ SQL (5.7ms) DELETE FROM "books_assets"
30121
+ SQL (3.5ms) DELETE FROM "books_assets"
30122
+ SQL (3.4ms) DELETE FROM "books"
30123
+  (0.1ms) begin transaction
30124
+ SQL (0.6ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
30125
+  (3.4ms) commit transaction
30126
+  (0.1ms) begin transaction
30127
+  (0.3ms) SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
30128
+ SQL (0.6ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
30129
+ [paperclip] Saving attachments.
30130
+  (2.5ms) commit transaction
30131
+ SQL (3.0ms) DELETE FROM "books_assets"
30132
+ SQL (3.9ms) DELETE FROM "books_assets"
30133
+ SQL (4.7ms) DELETE FROM "books"
30134
+  (0.1ms) begin transaction
30135
+ SQL (0.3ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
30136
+  (3.0ms) commit transaction
30137
+  (0.1ms) begin transaction
30138
+  (0.3ms) SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
30139
+ SQL (0.6ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
30140
+ [paperclip] Saving attachments.
30141
+  (4.4ms) commit transaction
30142
+ SQL (3.5ms) DELETE FROM "books_assets"
30143
+ SQL (3.2ms) DELETE FROM "books_assets"
30144
+ SQL (2.9ms) DELETE FROM "books"
30145
+ SQL (3.4ms) DELETE FROM "books_assets"
30146
+ SQL (2.8ms) DELETE FROM "books_assets"
30147
+ SQL (4.0ms) DELETE FROM "books"
30148
+ SQL (3.8ms) DELETE FROM "books_assets"
30149
+ SQL (4.2ms) DELETE FROM "books_assets"
30150
+ SQL (3.3ms) DELETE FROM "books"
30151
+  (0.1ms) begin transaction
30152
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30153
+  (3.9ms) commit transaction
30154
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]'
30155
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]'
30156
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]'
30157
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx'
30158
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi'
30159
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
30160
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
30161
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
30162
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-ibsdi'
30163
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-ibsdi20120713-78392-evfpjx'
30164
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
30165
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
30166
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]'
30167
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-1qkmz37'
30168
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-d0nq5g20120713-78392-youakx20120713-78392-1ph7hbi20120713-78392-1qkmz3720120713-78392-92tc0s'
30169
+  (0.2ms) begin transaction
30170
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
30171
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
30172
+ [paperclip] Saving attachments.
30173
+  (4.0ms) commit transaction
30174
+ SQL (2.9ms) DELETE FROM "books_assets"
30175
+ SQL (2.7ms) DELETE FROM "books_assets"
30176
+ SQL (3.3ms) DELETE FROM "books"
30177
+  (0.1ms) begin transaction
30178
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30179
+  (3.9ms) commit transaction
30180
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]'
30181
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]'
30182
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]'
30183
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr'
30184
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu'
30185
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
30186
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
30187
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
30188
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-5va71j'
30189
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-5va71j20120713-78392-rbptla'
30190
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
30191
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
30192
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]'
30193
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-1vgf2pu'
30194
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-b9wk5g20120713-78392-1dz9kzr20120713-78392-yzgpgu20120713-78392-1vgf2pu20120713-78392-1mdprtg'
30195
+  (0.3ms) begin transaction
30196
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
30197
+ SQL (0.7ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:23 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
30198
+ [paperclip] Saving attachments.
30199
+  (3.1ms) commit transaction
30200
+ SQL (3.3ms) DELETE FROM "books_assets"
30201
+ SQL (2.9ms) DELETE FROM "books_assets"
30202
+ SQL (2.8ms) DELETE FROM "books"
30203
+ SQL (4.3ms) DELETE FROM "books_assets"
30204
+ SQL (3.2ms) DELETE FROM "books_assets"
30205
+ SQL (4.0ms) DELETE FROM "books"
30206
+ SQL (3.1ms) DELETE FROM "books_assets"
30207
+ SQL (3.1ms) DELETE FROM "books_assets"
30208
+ SQL (2.9ms) DELETE FROM "books"
30209
+ SQL (3.4ms) DELETE FROM "books_assets"
30210
+ SQL (3.1ms) DELETE FROM "books_assets"
30211
+ SQL (3.0ms) DELETE FROM "books"
30212
+ SQL (3.1ms) DELETE FROM "books_assets"
30213
+ SQL (2.8ms) DELETE FROM "books_assets"
30214
+ SQL (3.9ms) DELETE FROM "books"
30215
+  (0.1ms) begin transaction
30216
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30217
+  (2.6ms) commit transaction
30218
+  (0.1ms) begin transaction
30219
+  (0.2ms) 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
30220
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:24 UTC +00:00], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30221
+ [paperclip] Saving attachments.
30222
+  (3.9ms) commit transaction
30223
+ Processing by Books::AssetsController#index as HTML
30224
+ Parameters: {"multiple"=>true, "fk_name"=>"9", "type"=>"books/assets/test_doc"}
30225
+ Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "9"]]
30226
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (86.6ms)
30227
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9
30228
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.1ms)
30229
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.4ms)
30230
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (94.7ms)
30231
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (120.4ms)
30232
+ Completed 200 OK in 217ms (Views: 213.3ms | ActiveRecord: 0.6ms)
30233
+ SQL (43.8ms) DELETE FROM "books_assets"
30234
+ SQL (159.5ms) DELETE FROM "books_assets"
30235
+ SQL (10.1ms) DELETE FROM "books"
30236
+  (0.1ms) begin transaction
30237
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30238
+  (5.2ms) commit transaction
30239
+  (0.1ms) begin transaction
30240
+  (0.3ms) 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
30241
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30242
+ [paperclip] Saving attachments.
30243
+  (4.9ms) commit transaction
30244
+ Processing by Books::AssetsController#index as HTML
30245
+ Parameters: {"target"=>"target_div", "fk_name"=>"10", "type"=>"books/assets/test_doc"}
30246
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "10"]]
30247
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.0ms)
30248
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
30249
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
30250
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
30251
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.4ms)
30252
+ Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms)
30253
+ SQL (6.3ms) DELETE FROM "books_assets"
30254
+ SQL (5.9ms) DELETE FROM "books_assets"
30255
+ SQL (6.2ms) DELETE FROM "books"
30256
+  (0.1ms) begin transaction
30257
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30258
+  (3.5ms) commit transaction
30259
+  (0.2ms) begin transaction
30260
+  (0.3ms) 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
30261
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30262
+ [paperclip] Saving attachments.
30263
+  (4.2ms) commit transaction
30264
+ Processing by Books::AssetsController#index as HTML
30265
+ Parameters: {"target"=>"target_div", "fk_name"=>"11", "type"=>"books/assets/test_doc"}
30266
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
30267
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.9ms)
30268
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
30269
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
30270
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
30271
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.5ms)
30272
+ Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)
30273
+ SQL (3.5ms) DELETE FROM "books_assets"
30274
+ SQL (3.0ms) DELETE FROM "books_assets"
30275
+ SQL (5.5ms) DELETE FROM "books"
30276
+  (0.1ms) begin transaction
30277
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30278
+  (4.4ms) commit transaction
30279
+  (0.1ms) begin transaction
30280
+  (0.2ms) 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
30281
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30282
+ [paperclip] Saving attachments.
30283
+  (5.0ms) commit transaction
30284
+ Processing by Books::AssetsController#index as HTML
30285
+ Parameters: {"target"=>"target_div", "fk_name"=>"12", "type"=>"books/assets/test_doc"}
30286
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
30287
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
30288
+ Books::Assets::TestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
30289
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
30290
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
30291
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.6ms)
30292
+ Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.7ms)
30293
+ SQL (6.2ms) DELETE FROM "books_assets"
30294
+ SQL (3.2ms) DELETE FROM "books_assets"
30295
+ SQL (4.3ms) DELETE FROM "books"
30296
+  (0.1ms) begin transaction
30297
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30298
+  (3.4ms) commit transaction
30299
+  (0.1ms) begin transaction
30300
+  (0.2ms) 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
30301
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30302
+ [paperclip] Saving attachments.
30303
+  (2.6ms) commit transaction
30304
+ Processing by Books::AssetsController#index as JSON
30305
+ Parameters: {"target"=>"target_div", "fk_name"=>"13", "type"=>"books/assets/test_doc"}
30306
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
30307
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
30308
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
30309
+ SQL (3.8ms) DELETE FROM "books_assets"
30310
+ SQL (4.2ms) DELETE FROM "books_assets"
30311
+ SQL (5.4ms) DELETE FROM "books"
30312
+  (0.1ms) begin transaction
30313
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30314
+  (2.7ms) commit transaction
30315
+  (0.1ms) begin transaction
30316
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
30317
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30318
+ [paperclip] Saving attachments.
30319
+  (3.2ms) commit transaction
30320
+ Processing by Books::AssetsController#index as JSON
30321
+ Parameters: {"target"=>"target_div", "fk_name"=>"14", "type"=>"books/assets/test_doc"}
30322
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
30323
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
30324
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.4ms)
30325
+ SQL (3.8ms) DELETE FROM "books_assets"
30326
+ SQL (3.3ms) DELETE FROM "books_assets"
30327
+ SQL (3.3ms) DELETE FROM "books"
30328
+  (0.1ms) begin transaction
30329
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30330
+  (3.1ms) commit transaction
30331
+ Processing by Books::AssetsController#create as JS
30332
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5e9e3bc8 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-99net>>, "fk_name"=>"15", "type"=>"books/assets/test_doc"}
30333
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
30334
+  (0.1ms) begin transaction
30335
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
30336
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30337
+ [paperclip] Saving attachments.
30338
+  (3.1ms) commit transaction
30339
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
30340
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.5ms)
30341
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.2ms)
30342
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (5.1ms)
30343
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (10.3ms)
30344
+ Completed 200 OK in 33ms (Views: 17.9ms | ActiveRecord: 4.3ms)
30345
+ SQL (3.5ms) DELETE FROM "books_assets"
30346
+ SQL (4.8ms) DELETE FROM "books_assets"
30347
+ SQL (3.6ms) DELETE FROM "books"
30348
+  (0.1ms) begin transaction
30349
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30350
+  (3.1ms) commit transaction
30351
+ Processing by Books::AssetsController#create as JS
30352
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5ea630d0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-1bk8fhp>>, "fk_name"=>"16", "type"=>"books/assets/test_doc"}
30353
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
30354
+  (0.1ms) begin transaction
30355
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
30356
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30357
+ [paperclip] Saving attachments.
30358
+  (4.7ms) commit transaction
30359
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
30360
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.8ms)
30361
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.6ms)
30362
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (4.0ms)
30363
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (6.6ms)
30364
+ Completed 200 OK in 26ms (Views: 8.9ms | ActiveRecord: 6.0ms)
30365
+ SQL (5.1ms) DELETE FROM "books_assets"
30366
+ SQL (3.4ms) DELETE FROM "books_assets"
30367
+ SQL (3.0ms) DELETE FROM "books"
30368
+  (0.1ms) begin transaction
30369
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30370
+  (2.6ms) commit transaction
30371
+ Processing by Books::AssetsController#create as JS
30372
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5eab95c0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-15ajdot>>, "fk_name"=>"17", "type"=>"books/assets/test_doc"}
30373
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
30374
+  (0.1ms) begin transaction
30375
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
30376
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30377
+ [paperclip] Saving attachments.
30378
+  (2.9ms) commit transaction
30379
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
30380
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.6ms)
30381
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.0ms)
30382
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.5ms)
30383
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.8ms)
30384
+ Completed 200 OK in 24ms (Views: 8.4ms | ActiveRecord: 4.2ms)
30385
+ SQL (3.0ms) DELETE FROM "books_assets"
30386
+ SQL (4.6ms) DELETE FROM "books_assets"
30387
+ SQL (2.7ms) DELETE FROM "books"
30388
+  (0.1ms) begin transaction
30389
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30390
+  (3.1ms) commit transaction
30391
+ Processing by Books::AssetsController#create as JS
30392
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007f7f5cd15578 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120713-78392-t3jfbd>>, "fk_name"=>"18", "type"=>"books/assets/test_doc"}
30393
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
30394
+  (0.1ms) begin transaction
30395
+  (0.3ms) 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
30396
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30397
+ [paperclip] Saving attachments.
30398
+  (3.0ms) commit transaction
30399
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
30400
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
30401
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.5ms)
30402
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.9ms)
30403
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (5.8ms)
30404
+ Completed 200 OK in 23ms (Views: 7.8ms | ActiveRecord: 4.4ms)
30405
+ SQL (3.6ms) DELETE FROM "books_assets"
30406
+ SQL (3.0ms) DELETE FROM "books_assets"
30407
+ SQL (3.2ms) DELETE FROM "books"
30408
+  (0.1ms) begin transaction
30409
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30410
+  (2.6ms) commit transaction
30411
+  (0.1ms) begin transaction
30412
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
30413
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30414
+ [paperclip] Saving attachments.
30415
+  (3.1ms) commit transaction
30416
+ Processing by Books::AssetsController#destroy as JS
30417
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"19", "asset_id"=>"21"}
30418
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
30419
+ Books::Assets::TestDoc Load (0.5ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 21 LIMIT 1
30420
+  (0.1ms) begin transaction
30421
+ [paperclip] Scheduling attachments for deletion.
30422
+ SQL (0.5ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 21]]
30423
+ [paperclip] Deleting attachments.
30424
+ [paperclip] deleting public/system/books/19/assets/test_doc.jpg
30425
+  (2.8ms) commit transaction
30426
+ Books::Assets::TestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
30427
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (2.2ms)
30428
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
30429
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.4ms)
30430
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (3.5ms)
30431
+ Completed 200 OK in 21ms (Views: 7.7ms | ActiveRecord: 4.5ms)
30432
+ SQL (3.6ms) DELETE FROM "books_assets"
30433
+ SQL (3.3ms) DELETE FROM "books_assets"
30434
+ SQL (2.9ms) DELETE FROM "books"
30435
+  (0.1ms) begin transaction
30436
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30437
+  (3.4ms) commit transaction
30438
+  (0.1ms) begin transaction
30439
+  (0.3ms) 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
30440
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30441
+ [paperclip] Saving attachments.
30442
+  (3.2ms) commit transaction
30443
+ Processing by Books::AssetsController#destroy as JS
30444
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"20", "asset_id"=>"22"}
30445
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
30446
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 22 LIMIT 1
30447
+  (0.0ms) begin transaction
30448
+ [paperclip] Scheduling attachments for deletion.
30449
+ SQL (0.6ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 22]]
30450
+ [paperclip] Deleting attachments.
30451
+ [paperclip] deleting public/system/books/20/assets/test_doc.jpg
30452
+  (2.9ms) commit transaction
30453
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
30454
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
30455
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
30456
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
30457
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
30458
+ Completed 200 OK in 15ms (Views: 3.8ms | ActiveRecord: 4.3ms)
30459
+ SQL (3.6ms) DELETE FROM "books_assets"
30460
+ SQL (3.1ms) DELETE FROM "books_assets"
30461
+ SQL (3.4ms) DELETE FROM "books"
30462
+  (0.1ms) begin transaction
30463
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30464
+  (2.6ms) commit transaction
30465
+  (0.1ms) begin transaction
30466
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
30467
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30468
+ [paperclip] Saving attachments.
30469
+  (3.0ms) commit transaction
30470
+ Processing by Books::AssetsController#destroy as JS
30471
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"21", "asset_id"=>"23"}
30472
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
30473
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 23 LIMIT 1
30474
+  (0.1ms) begin transaction
30475
+ [paperclip] Scheduling attachments for deletion.
30476
+ SQL (0.4ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 23]]
30477
+ [paperclip] Deleting attachments.
30478
+ [paperclip] deleting public/system/books/21/assets/test_doc.jpg
30479
+  (3.3ms) commit transaction
30480
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
30481
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.8ms)
30482
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
30483
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
30484
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.8ms)
30485
+ Completed 200 OK in 17ms (Views: 5.1ms | ActiveRecord: 4.5ms)
30486
+ SQL (3.7ms) DELETE FROM "books_assets"
30487
+ SQL (3.1ms) DELETE FROM "books_assets"
30488
+ SQL (3.2ms) DELETE FROM "books"
30489
+  (0.1ms) begin transaction
30490
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30491
+  (2.7ms) commit transaction
30492
+  (0.1ms) begin transaction
30493
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
30494
+ SQL (0.8ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30495
+ [paperclip] Saving attachments.
30496
+  (2.7ms) commit transaction
30497
+ Processing by Books::AssetsController#destroy as JS
30498
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"22", "asset_id"=>"24"}
30499
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
30500
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 24 LIMIT 1
30501
+  (0.0ms) begin transaction
30502
+ [paperclip] Scheduling attachments for deletion.
30503
+ SQL (0.4ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 24]]
30504
+ [paperclip] Deleting attachments.
30505
+ [paperclip] deleting public/system/books/22/assets/test_doc.jpg
30506
+  (4.9ms) commit transaction
30507
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
30508
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
30509
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
30510
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
30511
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.3ms)
30512
+ Completed 200 OK in 17ms (Views: 4.2ms | ActiveRecord: 5.9ms)
30513
+ SQL (3.2ms) DELETE FROM "books_assets"
30514
+ SQL (5.0ms) DELETE FROM "books_assets"
30515
+ SQL (3.6ms) DELETE FROM "books"
30516
+  (0.1ms) begin transaction
30517
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30518
+  (3.1ms) commit transaction
30519
+  (0.1ms) begin transaction
30520
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
30521
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30522
+ [paperclip] Saving attachments.
30523
+  (3.1ms) commit transaction
30524
+ Processing by Books::AssetsController#get as HTML
30525
+ Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"23", "asset_id"=>"25", "filename"=>"pippo", "extension"=>"jpg"}
30526
+ Books::Assets::TestDoc Load (0.7ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "25"]]
30527
+ Sent file public/system/books/23/assets/test_doc.jpg (0.3ms)
30528
+ Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
30529
+ SQL (3.5ms) DELETE FROM "books_assets"
30530
+ SQL (3.2ms) DELETE FROM "books_assets"
30531
+ SQL (2.9ms) DELETE FROM "books"
30532
+  (0.1ms) begin transaction
30533
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30534
+  (3.3ms) commit transaction
30535
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]'
30536
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]'
30537
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]'
30538
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v'
30539
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le'
30540
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
30541
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
30542
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
30543
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-24kubn'
30544
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-24kubn20120713-78392-1r9q0ov'
30545
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
30546
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
30547
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]'
30548
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-bi8jf3'
30549
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-p66oqy20120713-78392-10jvm9v20120713-78392-10i86le20120713-78392-bi8jf320120713-78392-17lf4n1'
30550
+  (0.4ms) begin transaction
30551
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 24
30552
+ SQL (0.8ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:25 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
30553
+ [paperclip] Saving attachments.
30554
+  (3.2ms) commit transaction
30555
+ Processing by Books::AssetsController#get as HTML
30556
+ Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"24", "asset_id"=>"26", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
30557
+ Books::Assets::TestImage Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "26"]]
30558
+ Sent file public/system/books/24/assets/thumb/test_image.jpg (0.2ms)
30559
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
30560
+ SQL (3.2ms) DELETE FROM "books_assets"
30561
+ SQL (2.8ms) DELETE FROM "books_assets"
30562
+ SQL (3.2ms) DELETE FROM "books"
30563
+  (0.1ms) begin transaction
30564
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30565
+  (3.8ms) commit transaction
30566
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]'
30567
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]'
30568
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]'
30569
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw'
30570
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux'
30571
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
30572
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
30573
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
30574
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-135sonv'
30575
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-135sonv20120713-78392-1htuaov'
30576
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
30577
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
30578
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]'
30579
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-vj0ilp'
30580
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120713-78392-1m1nnne20120713-78392-5az1sw20120713-78392-6z3iux20120713-78392-vj0ilp20120713-78392-12ng82d'
30581
+  (0.3ms) begin transaction
30582
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 25
30583
+ SQL (0.7ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 12923], ["asset_updated_at", Fri, 13 Jul 2012 14:11:26 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
30584
+ [paperclip] Saving attachments.
30585
+  (3.9ms) commit transaction
30586
+ Processing by Books::AssetsController#get as HTML
30587
+ Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"25", "asset_id"=>"27", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
30588
+ Books::Assets::TestImage Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "27"]]
30589
+ Sent file public/system/books/25/assets/thumb/test_image.jpg (0.4ms)
30590
+ Completed 200 OK in 5ms (ActiveRecord: 0.3ms)
30591
+ Command :: identify -format %wx%h '/Users/andrea/dev/kemen/acts_as_assets/spec/temp/test.jpg[0]'
30592
+ SQL (5.9ms) DELETE FROM "books_assets"
30593
+ SQL (3.6ms) DELETE FROM "books_assets"
30594
+ SQL (3.2ms) DELETE FROM "books"
30595
+  (0.1ms) begin transaction
30596
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30597
+  (2.7ms) commit transaction
30598
+ Processing by Books::AssetsController#get as HTML
30599
+ Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"26", "asset_id"=>"123456789", "filename"=>"pippo", "extension"=>"jpg"}
30600
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
30601
+ Completed 404 Not Found in 8ms (Views: 6.0ms | ActiveRecord: 0.2ms)
30602
+ SQL (3.1ms) DELETE FROM "books_assets"
30603
+ SQL (2.7ms) DELETE FROM "books_assets"
30604
+ SQL (2.6ms) DELETE FROM "books"
30605
+ SQL (3.6ms) DELETE FROM "books_assets"
30606
+ SQL (2.8ms) DELETE FROM "books_assets"
30607
+ SQL (4.0ms) DELETE FROM "books"
30608
+ SQL (6.4ms) DELETE FROM "books_assets"
30609
+ SQL (3.5ms) DELETE FROM "books_assets"
30610
+ SQL (3.3ms) DELETE FROM "books"
30611
+ SQL (31.6ms) DELETE FROM "books_assets"
30612
+ SQL (2.9ms) DELETE FROM "books_assets"
30613
+ SQL (2.7ms) DELETE FROM "books"
30614
+ SQL (3.0ms) DELETE FROM "books_assets"
30615
+ SQL (2.7ms) DELETE FROM "books_assets"
30616
+ SQL (2.7ms) DELETE FROM "books"
30617
+ SQL (2.9ms) DELETE FROM "books_assets"
30618
+ SQL (2.8ms) DELETE FROM "books_assets"
30619
+ SQL (2.7ms) DELETE FROM "books"
30620
+ SQL (3.4ms) DELETE FROM "books_assets"
30621
+ SQL (2.7ms) DELETE FROM "books_assets"
30622
+ SQL (3.1ms) DELETE FROM "books"
30623
+ SQL (3.6ms) DELETE FROM "books_assets"
30624
+ SQL (4.7ms) DELETE FROM "books_assets"
30625
+ SQL (3.3ms) DELETE FROM "books"
30626
+ SQL (3.4ms) DELETE FROM "books_assets"
30627
+ SQL (3.0ms) DELETE FROM "books_assets"
30628
+ SQL (5.7ms) DELETE FROM "books"
30629
+ SQL (3.3ms) DELETE FROM "books_assets"
30630
+ SQL (3.1ms) DELETE FROM "books_assets"
30631
+ SQL (3.9ms) DELETE FROM "books"
30632
+ SQL (3.6ms) DELETE FROM "books_assets"
30633
+ SQL (3.5ms) DELETE FROM "books_assets"
30634
+ SQL (4.6ms) DELETE FROM "books"
30635
+ SQL (3.4ms) DELETE FROM "books_assets"
30636
+ SQL (4.4ms) DELETE FROM "books_assets"
30637
+ SQL (3.4ms) DELETE FROM "books"
30638
+  (0.1ms) begin transaction
30639
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30640
+  (3.3ms) commit transaction
30641
+  (0.1ms) begin transaction
30642
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
30643
+  (0.1ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27
30644
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
30645
+ [paperclip] Saving attachments.
30646
+  (2.9ms) commit transaction
30647
+  (0.1ms) begin transaction
30648
+ Books::Assets::UniqueTestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
30649
+  (0.1ms) rollback transaction
30650
+ Books::Assets::UniqueTestDoc Load (0.4ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
30651
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
30652
+ SQL (4.4ms) DELETE FROM "books_assets"
30653
+ SQL (4.7ms) DELETE FROM "books_assets"
30654
+ SQL (3.4ms) DELETE FROM "books"
30655
+  (0.1ms) begin transaction
30656
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30657
+  (3.9ms) commit transaction
30658
+  (0.1ms) begin transaction
30659
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
30660
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30661
+ [paperclip] Saving attachments.
30662
+  (3.2ms) commit transaction
30663
+  (0.1ms) begin transaction
30664
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
30665
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30666
+ [paperclip] Saving attachments.
30667
+  (4.1ms) commit transaction
30668
+ Connecting to database specified by database.yml
30669
+  (0.2ms) select sqlite_version(*)
30670
+  (3.2ms) DROP TABLE "books"
30671
+  (3.0ms) CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255)) 
30672
+  (3.1ms) DROP TABLE "books_assets"
30673
+  (4.5ms) CREATE 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, "displayable" boolean DEFAULT 'f' NOT NULL) 
30674
+  (3.2ms) DROP TABLE "chapters"
30675
+  (3.0ms) CREATE TABLE "chapters" ("name" varchar(255) NOT NULL) 
30676
+  (2.9ms) DROP TABLE "chapters_assets"
30677
+  (3.2ms) CREATE TABLE "chapters_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, "chapter_name" varchar(255), "displayable" boolean DEFAULT 'f' NOT NULL) 
30678
+  (20.6ms) DROP TABLE "rt_tipi_pannello"
30679
+  (3.3ms) CREATE TABLE "rt_tipi_pannello" ("name" varchar(255) NOT NULL) 
30680
+  (3.1ms) DROP TABLE "rt_tipi_pannello_assets"
30681
+  (2.9ms) CREATE TABLE "rt_tipi_pannello_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, "displayable" boolean DEFAULT 'f' NOT NULL, "tipo_pannello_name" varchar(255)) 
30682
+ SQL (3.1ms) DELETE FROM "books_assets"
30683
+ SQL (3.0ms) DELETE FROM "books_assets"
30684
+ SQL (2.9ms) DELETE FROM "books"
30685
+ SQL (3.9ms) DELETE FROM "books_assets"
30686
+ SQL (5.8ms) DELETE FROM "books_assets"
30687
+ SQL (4.2ms) DELETE FROM "books"
30688
+ SQL (3.7ms) DELETE FROM "books_assets"
30689
+ SQL (3.4ms) DELETE FROM "books_assets"
30690
+ SQL (6.5ms) DELETE FROM "books"
30691
+ SQL (3.4ms) DELETE FROM "books_assets"
30692
+ SQL (2.9ms) DELETE FROM "books_assets"
30693
+ SQL (3.3ms) DELETE FROM "books"
30694
+ SQL (2.8ms) DELETE FROM "books_assets"
30695
+ SQL (5.0ms) DELETE FROM "books_assets"
30696
+ SQL (3.6ms) DELETE FROM "books"
30697
+ SQL (3.1ms) DELETE FROM "books_assets"
30698
+ SQL (4.7ms) DELETE FROM "books_assets"
30699
+ SQL (3.4ms) DELETE FROM "books"
30700
+ SQL (4.1ms) DELETE FROM "books_assets"
30701
+ SQL (3.0ms) DELETE FROM "books_assets"
30702
+ SQL (3.1ms) DELETE FROM "books"
30703
+ SQL (3.0ms) DELETE FROM "books_assets"
30704
+ SQL (2.8ms) DELETE FROM "books_assets"
30705
+ SQL (2.7ms) DELETE FROM "books"
30706
+ SQL (2.9ms) DELETE FROM "books_assets"
30707
+ SQL (2.8ms) DELETE FROM "books_assets"
30708
+ SQL (2.7ms) DELETE FROM "books"
30709
+ SQL (4.1ms) DELETE FROM "books_assets"
30710
+ SQL (3.1ms) DELETE FROM "books_assets"
30711
+ SQL (2.8ms) DELETE FROM "books"
30712
+  (0.1ms) begin transaction
30713
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30714
+  (3.0ms) commit transaction
30715
+  (0.1ms) begin transaction
30716
+  (0.3ms) 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
30717
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 1], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30718
+ [paperclip] Saving attachments.
30719
+  (3.2ms) commit transaction
30720
+ SQL (3.1ms) DELETE FROM "books_assets"
30721
+ SQL (2.6ms) DELETE FROM "books_assets"
30722
+ SQL (2.6ms) DELETE FROM "books"
30723
+  (0.1ms) begin transaction
30724
+ SQL (0.5ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30725
+  (2.4ms) commit transaction
30726
+  (0.0ms) begin transaction
30727
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 2
30728
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 2], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30729
+ [paperclip] Saving attachments.
30730
+  (2.7ms) commit transaction
30731
+ SQL (2.9ms) DELETE FROM "books_assets"
30732
+ SQL (2.8ms) DELETE FROM "books_assets"
30733
+ SQL (5.6ms) DELETE FROM "books"
30734
+  (0.1ms) begin transaction
30735
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30736
+  (2.8ms) commit transaction
30737
+  (0.1ms) begin transaction
30738
+  (0.2ms) 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
30739
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 3], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30740
+ [paperclip] Saving attachments.
30741
+  (3.6ms) commit transaction
30742
+ SQL (3.3ms) DELETE FROM "books_assets"
30743
+ SQL (3.4ms) DELETE FROM "books_assets"
30744
+ SQL (3.3ms) DELETE FROM "books"
30745
+  (0.1ms) begin transaction
30746
+ SQL (0.3ms) INSERT INTO "rt_tipi_pannello" ("name") VALUES (?) [["name", "Suntech STP"]]
30747
+  (3.9ms) commit transaction
30748
+  (0.1ms) begin transaction
30749
+ TipiPannello::Documenti::SchedaTecnica Load (0.2ms) SELECT "rt_tipi_pannello_assets".* FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP' LIMIT 1
30750
+  (0.1ms) SELECT MAX("rt_tipi_pannello_assets"."counter") AS max_id FROM "rt_tipi_pannello_assets" WHERE "rt_tipi_pannello_assets"."type" IN ('TipiPannello::Documenti::SchedaTecnica') AND "rt_tipi_pannello_assets"."tipo_pannello_name" = 'Suntech STP'
30751
+ SQL (53.3ms) INSERT INTO "rt_tipi_pannello_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "counter", "displayable", "tipo_pannello_name", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["counter", 1], ["displayable", false], ["tipo_pannello_name", "Suntech STP"], ["type", "TipiPannello::Documenti::SchedaTecnica"]]
30752
+ [paperclip] Saving attachments.
30753
+  (4.8ms) commit transaction
30754
+ SQL (3.1ms) DELETE FROM "books_assets"
30755
+ SQL (2.8ms) DELETE FROM "books_assets"
30756
+ SQL (2.8ms) DELETE FROM "books"
30757
+  (0.1ms) begin transaction
30758
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30759
+  (2.7ms) commit transaction
30760
+  (0.1ms) begin transaction
30761
+  (0.3ms) 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
30762
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 4], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30763
+ [paperclip] Saving attachments.
30764
+  (3.2ms) commit transaction
30765
+ SQL (3.2ms) DELETE FROM "books_assets"
30766
+ SQL (5.1ms) DELETE FROM "books_assets"
30767
+ SQL (3.4ms) DELETE FROM "books"
30768
+ SQL (2.9ms) DELETE FROM "books_assets"
30769
+ SQL (2.9ms) DELETE FROM "books_assets"
30770
+ SQL (3.4ms) DELETE FROM "books"
30771
+  (0.2ms) 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
30772
+ SQL (4.1ms) DELETE FROM "books_assets"
30773
+ SQL (2.8ms) DELETE FROM "books_assets"
30774
+ SQL (2.9ms) DELETE FROM "books"
30775
+  (0.1ms) begin transaction
30776
+  (0.2ms) 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
30777
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30778
+ [paperclip] Saving attachments.
30779
+  (3.1ms) commit transaction
30780
+  (0.0ms) begin transaction
30781
+  (0.2ms) 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
30782
+ SQL (0.2ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", nil], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30783
+ [paperclip] Saving attachments.
30784
+  (3.0ms) commit transaction
30785
+ Books::Asset Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 5]]
30786
+ Books::Asset Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."id" = ? LIMIT 1 [["id", 6]]
30787
+ SQL (3.4ms) DELETE FROM "books_assets"
30788
+ SQL (4.3ms) DELETE FROM "books_assets"
30789
+ SQL (5.1ms) DELETE FROM "books"
30790
+  (0.1ms) begin transaction
30791
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30792
+  (3.1ms) commit transaction
30793
+  (0.1ms) begin transaction
30794
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 5
30795
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["book_id", 5], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30796
+ [paperclip] Saving attachments.
30797
+  (3.6ms) commit transaction
30798
+ SQL (2.8ms) DELETE FROM "books_assets"
30799
+ SQL (3.0ms) DELETE FROM "books_assets"
30800
+ SQL (2.6ms) DELETE FROM "books"
30801
+  (0.1ms) begin transaction
30802
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30803
+  (2.6ms) commit transaction
30804
+  (0.1ms) begin transaction
30805
+  (0.2ms) 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
30806
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["book_id", 6], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30807
+ [paperclip] Saving attachments.
30808
+  (2.6ms) commit transaction
30809
+ SQL (3.5ms) DELETE FROM "books_assets"
30810
+ SQL (3.4ms) DELETE FROM "books_assets"
30811
+ SQL (3.3ms) DELETE FROM "books"
30812
+  (0.1ms) begin transaction
30813
+ SQL (0.4ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
30814
+  (2.6ms) commit transaction
30815
+  (0.1ms) begin transaction
30816
+  (0.2ms) SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
30817
+ SQL (0.4ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 1], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
30818
+ [paperclip] Saving attachments.
30819
+  (2.5ms) commit transaction
30820
+ SQL (3.3ms) DELETE FROM "books_assets"
30821
+ SQL (4.6ms) DELETE FROM "books_assets"
30822
+ SQL (3.3ms) DELETE FROM "books"
30823
+  (0.1ms) begin transaction
30824
+ SQL (0.2ms) INSERT INTO "chapters" ("name") VALUES (?) [["name", "a new chapter"]]
30825
+  (3.2ms) commit transaction
30826
+  (0.1ms) begin transaction
30827
+  (0.2ms) SELECT MAX("chapters_assets"."counter") AS max_id FROM "chapters_assets" WHERE "chapters_assets"."type" IN ('Chapters::Assets::Paragraph') AND "chapters_assets"."chapter_name" = 'a new chapter'
30828
+ SQL (0.4ms) INSERT INTO "chapters_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "chapter_name", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["chapter_name", "a new chapter"], ["counter", 2], ["displayable", false], ["type", "Chapters::Assets::Paragraph"]]
30829
+ [paperclip] Saving attachments.
30830
+  (4.3ms) commit transaction
30831
+ SQL (4.5ms) DELETE FROM "books_assets"
30832
+ SQL (2.9ms) DELETE FROM "books_assets"
30833
+ SQL (5.1ms) DELETE FROM "books"
30834
+ SQL (3.8ms) DELETE FROM "books_assets"
30835
+ SQL (3.1ms) DELETE FROM "books_assets"
30836
+ SQL (4.6ms) DELETE FROM "books"
30837
+ SQL (3.6ms) DELETE FROM "books_assets"
30838
+ SQL (3.3ms) DELETE FROM "books_assets"
30839
+ SQL (4.1ms) DELETE FROM "books"
30840
+  (0.1ms) begin transaction
30841
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30842
+  (5.1ms) commit transaction
30843
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]'
30844
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]'
30845
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]'
30846
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z'
30847
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg'
30848
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
30849
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
30850
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
30851
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-1b90ubj'
30852
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-1b90ubj20120828-95755-1dixf50'
30853
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
30854
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
30855
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]'
30856
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-ynfuh3'
30857
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-iu8k4x20120828-95755-uvpd3z20120828-95755-1u3r5kg20120828-95755-ynfuh320120828-95755-i5l50w'
30858
+  (0.2ms) begin transaction
30859
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 7
30860
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:07 UTC +00:00], ["book_id", 7], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
30861
+ [paperclip] Saving attachments.
30862
+  (2.7ms) commit transaction
30863
+ SQL (3.5ms) DELETE FROM "books_assets"
30864
+ SQL (2.7ms) DELETE FROM "books_assets"
30865
+ SQL (3.2ms) DELETE FROM "books"
30866
+  (0.1ms) begin transaction
30867
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30868
+  (5.2ms) commit transaction
30869
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]'
30870
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]'
30871
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]'
30872
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw'
30873
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg'
30874
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
30875
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
30876
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
30877
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-rrts64'
30878
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-rrts6420120828-95755-1tcx35g'
30879
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
30880
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
30881
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]'
30882
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-a5jps8'
30883
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-1119xrv20120828-95755-zmlmlw20120828-95755-1qq0jqg20120828-95755-a5jps820120828-95755-10awmiy'
30884
+  (0.2ms) begin transaction
30885
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 8
30886
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:08 UTC +00:00], ["book_id", 8], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
30887
+ [paperclip] Saving attachments.
30888
+  (3.2ms) commit transaction
30889
+ SQL (3.7ms) DELETE FROM "books_assets"
30890
+ SQL (3.2ms) DELETE FROM "books_assets"
30891
+ SQL (2.8ms) DELETE FROM "books"
30892
+ SQL (4.0ms) DELETE FROM "books_assets"
30893
+ SQL (3.3ms) DELETE FROM "books_assets"
30894
+ SQL (3.9ms) DELETE FROM "books"
30895
+ SQL (5.3ms) DELETE FROM "books_assets"
30896
+ SQL (3.5ms) DELETE FROM "books_assets"
30897
+ SQL (3.3ms) DELETE FROM "books"
30898
+ SQL (4.0ms) DELETE FROM "books_assets"
30899
+ SQL (3.4ms) DELETE FROM "books_assets"
30900
+ SQL (3.6ms) DELETE FROM "books"
30901
+ SQL (3.4ms) DELETE FROM "books_assets"
30902
+ SQL (3.1ms) DELETE FROM "books_assets"
30903
+ SQL (3.5ms) DELETE FROM "books"
30904
+  (0.1ms) begin transaction
30905
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30906
+  (2.7ms) commit transaction
30907
+  (0.1ms) begin transaction
30908
+  (0.2ms) 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
30909
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 9], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30910
+ [paperclip] Saving attachments.
30911
+  (2.7ms) commit transaction
30912
+ Processing by Books::AssetsController#index as HTML
30913
+ Parameters: {"multiple"=>true, "fk_name"=>"9", "type"=>"books/assets/test_doc"}
30914
+ Book Load (0.3ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "9"]]
30915
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (54.8ms)
30916
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 9
30917
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.6ms)
30918
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (5.4ms)
30919
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (65.2ms)
30920
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/index.html.erb (91.3ms)
30921
+ Completed 200 OK in 221ms (Views: 217.5ms | ActiveRecord: 0.6ms)
30922
+ SQL (3.3ms) DELETE FROM "books_assets"
30923
+ SQL (2.8ms) DELETE FROM "books_assets"
30924
+ SQL (2.9ms) DELETE FROM "books"
30925
+  (0.1ms) begin transaction
30926
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30927
+  (2.7ms) commit transaction
30928
+  (0.1ms) begin transaction
30929
+  (0.2ms) 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
30930
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 10], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30931
+ [paperclip] Saving attachments.
30932
+  (3.4ms) commit transaction
30933
+ Processing by Books::AssetsController#index as HTML
30934
+ Parameters: {"target"=>"target_div", "fk_name"=>"10", "type"=>"books/assets/test_doc"}
30935
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "10"]]
30936
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.1ms)
30937
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 10
30938
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.2ms)
30939
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (3.7ms)
30940
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (6.4ms)
30941
+ Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
30942
+ SQL (86.8ms) DELETE FROM "books_assets"
30943
+ SQL (132.7ms) DELETE FROM "books_assets"
30944
+ SQL (146.8ms) DELETE FROM "books"
30945
+  (0.1ms) begin transaction
30946
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30947
+  (4.4ms) commit transaction
30948
+  (0.1ms) begin transaction
30949
+  (0.2ms) 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
30950
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 11], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30951
+ [paperclip] Saving attachments.
30952
+  (6.9ms) commit transaction
30953
+ Processing by Books::AssetsController#index as HTML
30954
+ Parameters: {"target"=>"target_div", "fk_name"=>"11", "type"=>"books/assets/test_doc"}
30955
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "11"]]
30956
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.0ms)
30957
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 11
30958
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.0ms)
30959
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.3ms)
30960
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.5ms)
30961
+ Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms)
30962
+ SQL (6.6ms) DELETE FROM "books_assets"
30963
+ SQL (5.1ms) DELETE FROM "books_assets"
30964
+ SQL (3.8ms) DELETE FROM "books"
30965
+  (0.1ms) begin transaction
30966
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30967
+  (5.5ms) commit transaction
30968
+  (0.1ms) begin transaction
30969
+  (0.2ms) 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
30970
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 12], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30971
+ [paperclip] Saving attachments.
30972
+  (4.1ms) commit transaction
30973
+ Processing by Books::AssetsController#index as HTML
30974
+ Parameters: {"target"=>"target_div", "fk_name"=>"12", "type"=>"books/assets/test_doc"}
30975
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "12"]]
30976
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
30977
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 12
30978
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (1.9ms)
30979
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.2ms)
30980
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.7ms)
30981
+ Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms)
30982
+ SQL (3.6ms) DELETE FROM "books_assets"
30983
+ SQL (3.1ms) DELETE FROM "books_assets"
30984
+ SQL (2.9ms) DELETE FROM "books"
30985
+  (0.1ms) begin transaction
30986
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
30987
+  (2.9ms) commit transaction
30988
+  (0.1ms) begin transaction
30989
+  (0.2ms) 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
30990
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:09 UTC +00:00], ["book_id", 13], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
30991
+ [paperclip] Saving attachments.
30992
+  (2.8ms) commit transaction
30993
+ Processing by Books::AssetsController#index as JSON
30994
+ Parameters: {"target"=>"target_div", "fk_name"=>"13", "type"=>"books/assets/test_doc"}
30995
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "13"]]
30996
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 13
30997
+ Completed 200 OK in 3ms (Views: 1.1ms | ActiveRecord: 0.3ms)
30998
+ SQL (5.6ms) DELETE FROM "books_assets"
30999
+ SQL (7.0ms) DELETE FROM "books_assets"
31000
+ SQL (5.9ms) DELETE FROM "books"
31001
+  (0.1ms) begin transaction
31002
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31003
+  (7.9ms) commit transaction
31004
+  (0.1ms) begin transaction
31005
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
31006
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 14], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31007
+ [paperclip] Saving attachments.
31008
+  (5.4ms) commit transaction
31009
+ Processing by Books::AssetsController#index as JSON
31010
+ Parameters: {"target"=>"target_div", "fk_name"=>"14", "type"=>"books/assets/test_doc"}
31011
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "14"]]
31012
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 14
31013
+ Completed 200 OK in 3ms (Views: 1.0ms | ActiveRecord: 0.4ms)
31014
+ SQL (4.1ms) DELETE FROM "books_assets"
31015
+ SQL (5.7ms) DELETE FROM "books_assets"
31016
+ SQL (5.5ms) DELETE FROM "books"
31017
+  (0.1ms) begin transaction
31018
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31019
+  (5.3ms) commit transaction
31020
+ Processing by Books::AssetsController#create as JS
31021
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16dcbe178 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-1pdcwyw>>, "fk_name"=>"15", "type"=>"books/assets/test_doc"}
31022
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "15"]]
31023
+  (0.1ms) begin transaction
31024
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
31025
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 15], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31026
+ [paperclip] Saving attachments.
31027
+  (2.9ms) commit transaction
31028
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 15
31029
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.9ms)
31030
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (3.6ms)
31031
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (5.2ms)
31032
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (9.6ms)
31033
+ Completed 200 OK in 30ms (Views: 15.1ms | ActiveRecord: 3.9ms)
31034
+ SQL (7.8ms) DELETE FROM "books_assets"
31035
+ SQL (2.9ms) DELETE FROM "books_assets"
31036
+ SQL (5.4ms) DELETE FROM "books"
31037
+  (0.1ms) begin transaction
31038
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31039
+  (5.9ms) commit transaction
31040
+ Processing by Books::AssetsController#create as JS
31041
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16dd4cb80 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-32vajm>>, "fk_name"=>"16", "type"=>"books/assets/test_doc"}
31042
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "16"]]
31043
+  (0.1ms) begin transaction
31044
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
31045
+ SQL (0.8ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 16], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31046
+ [paperclip] Saving attachments.
31047
+  (3.3ms) commit transaction
31048
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 16
31049
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
31050
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.2ms)
31051
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.5ms)
31052
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.5ms)
31053
+ Completed 200 OK in 23ms (Views: 6.4ms | ActiveRecord: 4.8ms)
31054
+ SQL (5.1ms) DELETE FROM "books_assets"
31055
+ SQL (3.2ms) DELETE FROM "books_assets"
31056
+ SQL (4.6ms) DELETE FROM "books"
31057
+  (0.1ms) begin transaction
31058
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31059
+  (2.7ms) commit transaction
31060
+ Processing by Books::AssetsController#create as JS
31061
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16dda2c60 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-114bb24>>, "fk_name"=>"17", "type"=>"books/assets/test_doc"}
31062
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "17"]]
31063
+  (0.1ms) begin transaction
31064
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
31065
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 17], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31066
+ [paperclip] Saving attachments.
31067
+  (3.6ms) commit transaction
31068
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 17
31069
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.2ms)
31070
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.5ms)
31071
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.9ms)
31072
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.7ms)
31073
+ Completed 200 OK in 22ms (Views: 7.1ms | ActiveRecord: 4.8ms)
31074
+ SQL (4.8ms) DELETE FROM "books_assets"
31075
+ SQL (3.3ms) DELETE FROM "books_assets"
31076
+ SQL (2.8ms) DELETE FROM "books"
31077
+  (0.1ms) begin transaction
31078
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31079
+  (2.7ms) commit transaction
31080
+ Processing by Books::AssetsController#create as JS
31081
+ Parameters: {"file"=>#<Rack::Test::UploadedFile:0x007fa16b8fbab0 @content_type="image/jpeg", @original_filename="jpg_test.jpg", @tempfile=#<File:/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test.jpg20120828-95755-1txdm1e>>, "fk_name"=>"18", "type"=>"books/assets/test_doc"}
31082
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "18"]]
31083
+  (0.1ms) begin transaction
31084
+  (0.2ms) 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
31085
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 18], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31086
+ [paperclip] Saving attachments.
31087
+  (3.8ms) commit transaction
31088
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 18
31089
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
31090
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (2.3ms)
31091
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (2.6ms)
31092
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (4.6ms)
31093
+ Completed 200 OK in 21ms (Views: 6.8ms | ActiveRecord: 5.0ms)
31094
+ SQL (4.6ms) DELETE FROM "books_assets"
31095
+ SQL (2.8ms) DELETE FROM "books_assets"
31096
+ SQL (4.9ms) DELETE FROM "books"
31097
+  (0.1ms) begin transaction
31098
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31099
+  (2.8ms) commit transaction
31100
+  (0.1ms) begin transaction
31101
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
31102
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 19], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31103
+ [paperclip] Saving attachments.
31104
+  (3.0ms) commit transaction
31105
+ Processing by Books::AssetsController#destroy as JS
31106
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"19", "asset_id"=>"21"}
31107
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "19"]]
31108
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 21 LIMIT 1
31109
+  (0.0ms) begin transaction
31110
+ [paperclip] Scheduling attachments for deletion.
31111
+ SQL (0.4ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 21]]
31112
+ [paperclip] Deleting attachments.
31113
+ [paperclip] deleting public/system/books/19/assets/test_doc.jpg
31114
+  (3.0ms) commit transaction
31115
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 19
31116
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
31117
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
31118
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.2ms)
31119
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
31120
+ Completed 200 OK in 17ms (Views: 5.5ms | ActiveRecord: 4.1ms)
31121
+ SQL (3.6ms) DELETE FROM "books_assets"
31122
+ SQL (3.2ms) DELETE FROM "books_assets"
31123
+ SQL (3.9ms) DELETE FROM "books"
31124
+  (0.1ms) begin transaction
31125
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31126
+  (5.1ms) commit transaction
31127
+  (0.1ms) begin transaction
31128
+  (0.2ms) 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
31129
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 20], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31130
+ [paperclip] Saving attachments.
31131
+  (3.8ms) commit transaction
31132
+ Processing by Books::AssetsController#destroy as JS
31133
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"20", "asset_id"=>"22"}
31134
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "20"]]
31135
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 22 LIMIT 1
31136
+  (0.0ms) begin transaction
31137
+ [paperclip] Scheduling attachments for deletion.
31138
+ SQL (0.5ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 22]]
31139
+ [paperclip] Deleting attachments.
31140
+ [paperclip] deleting public/system/books/20/assets/test_doc.jpg
31141
+  (3.3ms) commit transaction
31142
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 20
31143
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.3ms)
31144
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
31145
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
31146
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.2ms)
31147
+ Completed 200 OK in 15ms (Views: 3.9ms | ActiveRecord: 4.4ms)
31148
+ SQL (4.4ms) DELETE FROM "books_assets"
31149
+ SQL (2.8ms) DELETE FROM "books_assets"
31150
+ SQL (4.4ms) DELETE FROM "books"
31151
+  (0.1ms) begin transaction
31152
+ SQL (0.2ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31153
+  (3.1ms) commit transaction
31154
+  (0.1ms) begin transaction
31155
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
31156
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 21], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31157
+ [paperclip] Saving attachments.
31158
+  (2.7ms) commit transaction
31159
+ Processing by Books::AssetsController#destroy as JS
31160
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"21", "asset_id"=>"23"}
31161
+ Book Load (0.1ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "21"]]
31162
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 23 LIMIT 1
31163
+  (0.0ms) begin transaction
31164
+ [paperclip] Scheduling attachments for deletion.
31165
+ SQL (0.4ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 23]]
31166
+ [paperclip] Deleting attachments.
31167
+ [paperclip] deleting public/system/books/21/assets/test_doc.jpg
31168
+  (3.1ms) commit transaction
31169
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 21
31170
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.4ms)
31171
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
31172
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
31173
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.1ms)
31174
+ Completed 200 OK in 14ms (Views: 3.8ms | ActiveRecord: 4.0ms)
31175
+ SQL (4.7ms) DELETE FROM "books_assets"
31176
+ SQL (3.0ms) DELETE FROM "books_assets"
31177
+ SQL (4.9ms) DELETE FROM "books"
31178
+  (0.1ms) begin transaction
31179
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31180
+  (3.2ms) commit transaction
31181
+  (0.1ms) begin transaction
31182
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
31183
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 22], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31184
+ [paperclip] Saving attachments.
31185
+  (3.3ms) commit transaction
31186
+ Processing by Books::AssetsController#destroy as JS
31187
+ Parameters: {"type"=>"books/assets/test_doc", "target"=>"target_div", "filename"=>"pippo", "extension"=>"jpg", "fk_name"=>"22", "asset_id"=>"24"}
31188
+ Book Load (0.2ms) SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT 1 [["id", "22"]]
31189
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = 24 LIMIT 1
31190
+  (0.1ms) begin transaction
31191
+ [paperclip] Scheduling attachments for deletion.
31192
+ SQL (0.3ms) DELETE FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? [["id", 24]]
31193
+ [paperclip] Deleting attachments.
31194
+ [paperclip] deleting public/system/books/22/assets/test_doc.jpg
31195
+  (3.6ms) commit transaction
31196
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 22
31197
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_upload_link.html.erb (1.5ms)
31198
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset.html.erb (0.0ms)
31199
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_assets.html.erb (0.3ms)
31200
+ Rendered /Users/andrea/dev/kemen/acts_as_assets/app/views/acts_as_assets/assets/_asset_multiple_upload.html.erb (2.6ms)
31201
+ Completed 200 OK in 16ms (Views: 5.2ms | ActiveRecord: 4.7ms)
31202
+ SQL (3.6ms) DELETE FROM "books_assets"
31203
+ SQL (3.0ms) DELETE FROM "books_assets"
31204
+ SQL (4.0ms) DELETE FROM "books"
31205
+  (0.1ms) begin transaction
31206
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31207
+  (3.1ms) commit transaction
31208
+  (0.1ms) begin transaction
31209
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 23
31210
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 11392], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 23], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31211
+ [paperclip] Saving attachments.
31212
+  (2.9ms) commit transaction
31213
+ Processing by Books::AssetsController#get as HTML
31214
+ Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"23", "asset_id"=>"25", "filename"=>"pippo", "extension"=>"jpg"}
31215
+ Books::Assets::TestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "25"]]
31216
+ Sent file public/system/books/23/assets/test_doc.jpg (0.2ms)
31217
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
31218
+ SQL (3.3ms) DELETE FROM "books_assets"
31219
+ SQL (2.8ms) DELETE FROM "books_assets"
31220
+ SQL (2.8ms) DELETE FROM "books"
31221
+  (0.1ms) begin transaction
31222
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31223
+  (2.8ms) commit transaction
31224
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]'
31225
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]'
31226
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]'
31227
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl'
31228
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex'
31229
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
31230
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
31231
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
31232
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1217msm'
31233
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1217msm20120828-95755-jpk768'
31234
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
31235
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
31236
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]'
31237
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1oo5do9'
31238
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-18dg3mi20120828-95755-8kbrzl20120828-95755-mp3qex20120828-95755-1oo5do920120828-95755-6h6k68'
31239
+  (0.2ms) begin transaction
31240
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 24
31241
+ SQL (0.6ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:10 UTC +00:00], ["book_id", 24], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
31242
+ [paperclip] Saving attachments.
31243
+  (3.1ms) commit transaction
31244
+ Processing by Books::AssetsController#get as HTML
31245
+ Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"24", "asset_id"=>"26", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
31246
+ Books::Assets::TestImage Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "26"]]
31247
+ Sent file public/system/books/24/assets/thumb/test_image.jpg (0.2ms)
31248
+ Completed 200 OK in 4ms (ActiveRecord: 0.3ms)
31249
+ SQL (3.4ms) DELETE FROM "books_assets"
31250
+ SQL (2.8ms) DELETE FROM "books_assets"
31251
+ SQL (3.3ms) DELETE FROM "books"
31252
+  (0.1ms) begin transaction
31253
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31254
+  (2.7ms) commit transaction
31255
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]'
31256
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]'
31257
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]'
31258
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp.jpg[0]' -resize "800x600<" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d'
31259
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh'
31260
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
31261
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
31262
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
31263
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]' -resize "64x64" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1u79q3n'
31264
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1u79q3n20120828-95755-110aelo'
31265
+ Command :: identify -format %wx%h '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
31266
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
31267
+ Command :: identify -format %m '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]'
31268
+ Command :: convert '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh[0]' -resize "128x128" '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1yqrs6w'
31269
+ Command :: file -b --mime '/var/folders/7g/mny7qppn6ds_prrh9nfvwz5w0000gn/T/jpg_test20120828-95755-bbpsgp20120828-95755-b5ub1d20120828-95755-10s11kh20120828-95755-1yqrs6w20120828-95755-rj0v8e'
31270
+  (0.2ms) begin transaction
31271
+  (0.3ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."book_id" = 25
31272
+ SQL (0.5ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", "image/jpeg"], ["asset_file_name", "jpg_test.jpg"], ["asset_file_size", 14100], ["asset_updated_at", Tue, 28 Aug 2012 10:34:11 UTC +00:00], ["book_id", 25], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestImage"]]
31273
+ [paperclip] Saving attachments.
31274
+  (7.0ms) commit transaction
31275
+ Processing by Books::AssetsController#get as HTML
31276
+ Parameters: {"type"=>"books/assets/test_image", "fk_name"=>"25", "asset_id"=>"27", "style"=>"thumb", "filename"=>"pippo", "extension"=>"jpg"}
31277
+ Books::Assets::TestImage Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestImage') AND "books_assets"."id" = ? LIMIT 1 [["id", "27"]]
31278
+ Sent file public/system/books/25/assets/thumb/test_image.jpg (0.2ms)
31279
+ Completed 200 OK in 53ms (ActiveRecord: 0.2ms)
31280
+ Command :: identify -format %wx%h '/Users/andrea/dev/kemen/acts_as_assets/spec/temp/test.jpg[0]'
31281
+ SQL (3.3ms) DELETE FROM "books_assets"
31282
+ SQL (5.3ms) DELETE FROM "books_assets"
31283
+ SQL (3.4ms) DELETE FROM "books"
31284
+  (0.1ms) begin transaction
31285
+ SQL (0.4ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31286
+  (2.6ms) commit transaction
31287
+ Processing by Books::AssetsController#get as HTML
31288
+ Parameters: {"type"=>"books/assets/test_doc", "fk_name"=>"26", "asset_id"=>"123456789", "filename"=>"pippo", "extension"=>"jpg"}
31289
+ Books::Assets::TestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."id" = ? LIMIT 1 [["id", "123456789"]]
31290
+ Completed 404 Not Found in 10ms (Views: 7.0ms | ActiveRecord: 0.2ms)
31291
+ SQL (2.9ms) DELETE FROM "books_assets"
31292
+ SQL (2.8ms) DELETE FROM "books_assets"
31293
+ SQL (4.9ms) DELETE FROM "books"
31294
+ SQL (3.7ms) DELETE FROM "books_assets"
31295
+ SQL (3.2ms) DELETE FROM "books_assets"
31296
+ SQL (3.3ms) DELETE FROM "books"
31297
+ SQL (4.6ms) DELETE FROM "books_assets"
31298
+ SQL (3.0ms) DELETE FROM "books_assets"
31299
+ SQL (4.9ms) DELETE FROM "books"
31300
+ SQL (3.2ms) DELETE FROM "books_assets"
31301
+ SQL (2.9ms) DELETE FROM "books_assets"
31302
+ SQL (3.2ms) DELETE FROM "books"
31303
+ SQL (4.4ms) DELETE FROM "books_assets"
31304
+ SQL (3.4ms) DELETE FROM "books_assets"
31305
+ SQL (3.5ms) DELETE FROM "books"
31306
+ SQL (2.9ms) DELETE FROM "books_assets"
31307
+ SQL (4.3ms) DELETE FROM "books_assets"
31308
+ SQL (2.8ms) DELETE FROM "books"
31309
+ SQL (4.3ms) DELETE FROM "books_assets"
31310
+ SQL (3.4ms) DELETE FROM "books_assets"
31311
+ SQL (2.9ms) DELETE FROM "books"
31312
+ SQL (3.0ms) DELETE FROM "books_assets"
31313
+ SQL (3.2ms) DELETE FROM "books_assets"
31314
+ SQL (3.6ms) DELETE FROM "books"
31315
+ SQL (3.1ms) DELETE FROM "books_assets"
31316
+ SQL (4.6ms) DELETE FROM "books_assets"
31317
+ SQL (3.5ms) DELETE FROM "books"
31318
+ SQL (3.0ms) DELETE FROM "books_assets"
31319
+ SQL (2.7ms) DELETE FROM "books_assets"
31320
+ SQL (4.8ms) DELETE FROM "books"
31321
+ SQL (3.7ms) DELETE FROM "books_assets"
31322
+ SQL (3.6ms) DELETE FROM "books_assets"
31323
+ SQL (3.2ms) DELETE FROM "books"
31324
+ SQL (2.8ms) DELETE FROM "books_assets"
31325
+ SQL (3.0ms) DELETE FROM "books_assets"
31326
+ SQL (3.6ms) DELETE FROM "books"
31327
+  (0.1ms) begin transaction
31328
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31329
+  (3.2ms) commit transaction
31330
+  (0.1ms) begin transaction
31331
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
31332
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27
31333
+ SQL (0.4ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 27], ["counter", 1], ["displayable", false], ["type", "Books::Assets::UniqueTestDoc"]]
31334
+ [paperclip] Saving attachments.
31335
+  (3.6ms) commit transaction
31336
+  (0.1ms) begin transaction
31337
+ Books::Assets::UniqueTestDoc Load (0.3ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
31338
+  (0.1ms) rollback transaction
31339
+ Books::Assets::UniqueTestDoc Load (0.2ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
31340
+ Books::Assets::UniqueTestDoc Load (0.1ms) SELECT "books_assets".* FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::UniqueTestDoc') AND "books_assets"."book_id" = 27 LIMIT 1
31341
+ SQL (5.2ms) DELETE FROM "books_assets"
31342
+ SQL (3.4ms) DELETE FROM "books_assets"
31343
+ SQL (2.8ms) DELETE FROM "books"
31344
+  (0.1ms) begin transaction
31345
+ SQL (0.3ms) INSERT INTO "books" ("title") VALUES (?) [["title", "my new book"]]
31346
+  (2.7ms) commit transaction
31347
+  (0.1ms) begin transaction
31348
+  (0.2ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
31349
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 1], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31350
+ [paperclip] Saving attachments.
31351
+  (3.0ms) commit transaction
31352
+  (0.1ms) begin transaction
31353
+  (0.4ms) SELECT MAX("books_assets"."counter") AS max_id FROM "books_assets" WHERE "books_assets"."type" IN ('Books::Assets::TestDoc') AND "books_assets"."book_id" = 28
31354
+ SQL (0.3ms) INSERT INTO "books_assets" ("asset_content_type", "asset_file_name", "asset_file_size", "asset_updated_at", "book_id", "counter", "displayable", "type") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["asset_content_type", nil], ["asset_file_name", nil], ["asset_file_size", nil], ["asset_updated_at", nil], ["book_id", 28], ["counter", 2], ["displayable", false], ["type", "Books::Assets::TestDoc"]]
31355
+ [paperclip] Saving attachments.
31356
+  (2.8ms) commit transaction