modulate 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  = f.inputs do
5
5
  = f.semantic_fields_for :modulate_documents, @<%= model_name.underscore %>.modulate_documents.build do |d|
6
6
  = d.input(:attachment, as: :file, label: 'Choose document to attach', required: true,
7
- input_html: {multiple: true}).sub('[attachment][]', '[attachment]').html_safe
7
+ input_html: {multiple: true, name: "account[modulate_documents_attributes][][attachment]"}).sub('[attachment][]', '[attachment]').html_safe
8
8
 
9
9
  = f.actions do
10
10
  = f.action :submit, as: 'button', button_html: {class: 'btn btn-primary'}
data/lib/modulate.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "modulate/engine"
1
+ require 'carrierwave/riak'
2
2
 
3
3
  module Modulate
4
4
 
@@ -18,3 +18,8 @@ module Modulate
18
18
  @configuration
19
19
  end
20
20
  end
21
+
22
+ require 'modulate/relation'
23
+ require "modulate/engine"
24
+ require 'modulate/configuration'
25
+
@@ -1,7 +1,3 @@
1
- require 'carrierwave/riak'
2
- require 'modulate/relation'
3
- require 'modulate/configuration'
4
-
5
1
  module Modulate
6
2
 
7
3
  class Engine < ::Rails::Engine
@@ -19,3 +15,4 @@ module Modulate
19
15
  end
20
16
 
21
17
  end
18
+
@@ -1,3 +1,3 @@
1
1
  module Modulate
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -10,12 +10,15 @@ class AccountsController < ApplicationController
10
10
  def update
11
11
  @account = Account.find(params[:id])
12
12
  @account.attributes = params[:account]
13
- @doc = @account.modulate_documents.detect(&:new_record?)
14
- @doc.attached_by_id = 1 unless @doc.blank?
13
+ @docs = @account.modulate_documents.select(&:new_record?)
14
+ @docs.each do |doc|
15
+ doc.attached_by_id = 1 unless doc.blank?
16
+ end
17
+
15
18
  if @account.save
16
19
  redirect_to accounts_path, notice: "successfully"
17
20
  else
18
- flash.now[:alert] = "I like pie Error"
21
+ flash.now[:alert] = "error"
19
22
  render :show
20
23
  end
21
24
  end
@@ -4,7 +4,7 @@
4
4
  = f.inputs do
5
5
  = f.semantic_fields_for :modulate_documents, @account.modulate_documents.build do |d|
6
6
  = d.input(:attachment, as: :file, label: 'Choose document to attach', required: true,
7
- input_html: {multiple: true}).sub('[attachment][]', '[attachment]').html_safe
7
+ input_html: {multiple: true, name: "account[modulate_documents_attributes][][attachment]"}).sub('[attachment][]', '[attachment]').html_safe
8
8
 
9
9
  = f.actions do
10
10
  = f.action :submit, as: 'button', button_html: {class: 'btn btn-primary'}
@@ -3080,3 +3080,779 @@ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 13:58:41
3080
3080
  Served asset /application.js - 304 Not Modified (0ms)
3081
3081
  Connecting to database specified by database.yml
3082
3082
  Connecting to database specified by database.yml
3083
+ Connecting to database specified by database.yml
3084
+
3085
+
3086
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 14:55:50 -0400
3087
+ Processing by AccountsController#update as HTML
3088
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"label"=>"Some Label", "public"=>"0", "id"=>"1"}}}, "button"=>"", "id"=>"1"}
3089
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3090
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account' AND `modulate_documents`.`id` IN (1)
3091
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3092
+  (0.2ms) BEGIN
3093
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3094
+ Modulate::Document Exists (0.4ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`id` != 1 AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3095
+  (2.8ms) UPDATE `modulate_documents` SET `label` = 'Some Label', `public` = 0, `updated_at` = '2013-03-26 18:55:51' WHERE `modulate_documents`.`id` = 1
3096
+  (0.6ms) COMMIT
3097
+ Redirected to http://modulate.local/accounts
3098
+ Completed 302 Found in 260ms (ActiveRecord: 44.2ms)
3099
+
3100
+
3101
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
3102
+ Processing by AccountsController#index as HTML
3103
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
3104
+ Rendered accounts/index.html.haml within layouts/application (4.9ms)
3105
+ Completed 200 OK in 81ms (Views: 79.4ms | ActiveRecord: 0.3ms)
3106
+
3107
+
3108
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
3109
+ Served asset /application.css - 304 Not Modified (7ms)
3110
+
3111
+
3112
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
3113
+ Served asset /jquery.js - 304 Not Modified (3ms)
3114
+
3115
+
3116
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 14:55:51 -0400
3117
+ Served asset /jquery_ujs.js - 304 Not Modified (5ms)
3118
+
3119
+
3120
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 14:55:52 -0400
3121
+ Served asset /application.js - 304 Not Modified (10ms)
3122
+
3123
+
3124
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
3125
+ Processing by AccountsController#update as HTML
3126
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"label"=>"Some Label", "public"=>"0", "id"=>"1"}, "1"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa643034030 @original_filename="zendesk.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][1][attachment]\"; filename=\"zendesk.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-27815-mbkqc0>>}}}, "button"=>"", "id"=>"1"}
3127
+ Account Load (0.6ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3128
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account' AND `modulate_documents`.`id` IN (1)
3129
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3130
+  (0.1ms) BEGIN
3131
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3132
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-zendesk.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3133
+ SQL (3.0ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-zendesk.txt', 'Dummy::Account', 'text/plain', '2013-03-26 19:14:38', 'zendesk.txt', '1-zendesk.txt', NULL, 0, '2013-03-26 19:14:38')
3134
+  (0.5ms) COMMIT
3135
+ Redirected to http://modulate.local/accounts
3136
+ Completed 302 Found in 260ms (ActiveRecord: 9.5ms)
3137
+
3138
+
3139
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
3140
+ Processing by AccountsController#index as HTML
3141
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
3142
+ Rendered accounts/index.html.haml within layouts/application (40.0ms)
3143
+ Completed 200 OK in 75ms (Views: 72.9ms | ActiveRecord: 0.3ms)
3144
+
3145
+
3146
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
3147
+ Served asset /application.css - 304 Not Modified (4ms)
3148
+
3149
+
3150
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
3151
+ Served asset /jquery.js - 304 Not Modified (3ms)
3152
+
3153
+
3154
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
3155
+ Served asset /jquery_ujs.js - 304 Not Modified (3ms)
3156
+
3157
+
3158
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:38 -0400
3159
+ Served asset /application.js - 304 Not Modified (2ms)
3160
+
3161
+
3162
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:40 -0400
3163
+ Processing by AccountsController#show as HTML
3164
+ Parameters: {"id"=>"1"}
3165
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3166
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3167
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3168
+ Rendered accounts/_modulate_account_documents.html.haml (42.4ms)
3169
+ Rendered accounts/_modulate_attachments.html.haml (192.8ms)
3170
+ Rendered accounts/show.html.erb within layouts/application (199.4ms)
3171
+ Completed 200 OK in 208ms (Views: 205.0ms | ActiveRecord: 0.9ms)
3172
+
3173
+
3174
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
3175
+ Served asset /application.css - 304 Not Modified (0ms)
3176
+
3177
+
3178
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
3179
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3180
+
3181
+
3182
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
3183
+ Served asset /application.js - 304 Not Modified (0ms)
3184
+
3185
+
3186
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:41 -0400
3187
+ Served asset /jquery.js - 304 Not Modified (0ms)
3188
+ Connecting to database specified by database.yml
3189
+
3190
+
3191
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:45 -0400
3192
+ Processing by AccountsController#show as HTML
3193
+ Parameters: {"id"=>"1"}
3194
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3195
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3196
+ Modulate::Document Load (0.2ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3197
+ Rendered accounts/_modulate_account_documents.html.haml (133.6ms)
3198
+ Rendered accounts/_modulate_attachments.html.haml (235.1ms)
3199
+ Rendered accounts/show.html.erb within layouts/application (243.6ms)
3200
+ Completed 200 OK in 365ms (Views: 310.9ms | ActiveRecord: 5.5ms)
3201
+
3202
+
3203
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
3204
+
3205
+
3206
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
3207
+ Served asset /jquery.js - 304 Not Modified (0ms)
3208
+
3209
+
3210
+ Served asset /application.css - 304 Not Modified (4ms)
3211
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
3212
+
3213
+
3214
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:46 -0400
3215
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3216
+ Served asset /application.js - 304 Not Modified (7ms)
3217
+
3218
+
3219
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
3220
+ Processing by AccountsController#show as HTML
3221
+ Parameters: {"id"=>"1"}
3222
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3223
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3224
+ Modulate::Document Load (0.2ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3225
+ Rendered accounts/_modulate_account_documents.html.haml (134.0ms)
3226
+ Rendered accounts/_modulate_attachments.html.haml (230.2ms)
3227
+ Rendered accounts/show.html.erb within layouts/application (239.2ms)
3228
+ Completed 200 OK in 354ms (Views: 304.9ms | ActiveRecord: 5.5ms)
3229
+
3230
+
3231
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
3232
+
3233
+
3234
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
3235
+
3236
+
3237
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
3238
+ Served asset /jquery.js - 304 Not Modified (3ms)
3239
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3240
+ Served asset /application.css - 304 Not Modified (6ms)
3241
+
3242
+
3243
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 15:14:49 -0400
3244
+ Served asset /application.js - 304 Not Modified (7ms)
3245
+
3246
+
3247
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
3248
+ Processing by AccountsController#show as HTML
3249
+ Parameters: {"id"=>"1"}
3250
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3251
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3252
+ Modulate::Document Load (0.2ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3253
+ Rendered accounts/_modulate_account_documents.html.haml (9.9ms)
3254
+ Rendered accounts/_modulate_attachments.html.haml (21.4ms)
3255
+ Rendered accounts/show.html.erb within layouts/application (22.5ms)
3256
+ Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 1.0ms)
3257
+
3258
+
3259
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
3260
+ Served asset /jquery.js - 304 Not Modified (8ms)
3261
+
3262
+
3263
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
3264
+ Served asset /jquery_ujs.js - 304 Not Modified (6ms)
3265
+
3266
+
3267
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
3268
+ Served asset /application.js - 304 Not Modified (0ms)
3269
+
3270
+
3271
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:21:28 -0400
3272
+ Served asset /application.css - 304 Not Modified (1ms)
3273
+ Connecting to database specified by database.yml
3274
+ Connecting to database specified by database.yml
3275
+
3276
+
3277
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:25:19 -0400
3278
+ Processing by AccountsController#show as HTML
3279
+ Parameters: {"id"=>"1"}
3280
+ Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3281
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3282
+ Rendered accounts/_modulate_account_documents.html.haml (3.1ms)
3283
+ Rendered accounts/_modulate_attachments.html.haml (52.4ms)
3284
+ Rendered accounts/show.html.erb within layouts/application (53.3ms)
3285
+ Completed 200 OK in 62ms (Views: 58.8ms | ActiveRecord: 1.0ms)
3286
+
3287
+
3288
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:25:19 -0400
3289
+ Served asset /application.css - 304 Not Modified (3ms)
3290
+
3291
+
3292
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:19 -0400
3293
+ Served asset /jquery.js - 304 Not Modified (0ms)
3294
+
3295
+
3296
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:20 -0400
3297
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3298
+
3299
+
3300
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:20 -0400
3301
+ Served asset /application.js - 304 Not Modified (0ms)
3302
+
3303
+
3304
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:25:29 -0400
3305
+ Processing by AccountsController#update as HTML
3306
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa64522a4f0 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][0][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42131-x5nk8a>>}}}, "button"=>"", "id"=>"1"}
3307
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3308
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3309
+  (0.7ms) BEGIN
3310
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3311
+ Modulate::Document Exists (0.4ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3312
+ SQL (2.5ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:25:30', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:25:30')
3313
+  (0.5ms) COMMIT
3314
+ Redirected to http://modulate.local/accounts
3315
+ Completed 302 Found in 259ms (ActiveRecord: 9.6ms)
3316
+
3317
+
3318
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
3319
+ Processing by AccountsController#index as HTML
3320
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts`
3321
+ Rendered accounts/index.html.haml within layouts/application (5.6ms)
3322
+ Completed 200 OK in 82ms (Views: 79.3ms | ActiveRecord: 0.3ms)
3323
+
3324
+
3325
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
3326
+
3327
+
3328
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
3329
+ Served asset /jquery.js - 304 Not Modified (0ms)
3330
+ Served asset /application.css - 304 Not Modified (4ms)
3331
+
3332
+
3333
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
3334
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3335
+
3336
+
3337
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:30 -0400
3338
+ Served asset /application.js - 304 Not Modified (20ms)
3339
+
3340
+
3341
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:25:49 -0400
3342
+ Processing by AccountsController#show as HTML
3343
+ Parameters: {"id"=>"1"}
3344
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3345
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3346
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3347
+ Rendered accounts/_modulate_account_documents.html.haml (132.2ms)
3348
+ Rendered accounts/_modulate_attachments.html.haml (253.5ms)
3349
+ Rendered accounts/show.html.erb within layouts/application (297.3ms)
3350
+ Completed 200 OK in 414ms (Views: 329.2ms | ActiveRecord: 5.6ms)
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+
3357
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
3358
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
3359
+ Served asset /jquery.js - 304 Not Modified (3ms)
3360
+
3361
+
3362
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
3363
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3364
+ Served asset /application.js - 304 Not Modified (1ms)
3365
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:25:50 -0400
3366
+ Served asset /application.css - 304 Not Modified (4ms)
3367
+
3368
+
3369
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:27:59 -0400
3370
+ Processing by AccountsController#show as HTML
3371
+ Parameters: {"id"=>"1"}
3372
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3373
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3374
+ Rendered accounts/_modulate_account_documents.html.haml (95.7ms)
3375
+ Rendered accounts/_modulate_attachments.html.haml (236.9ms)
3376
+ Rendered accounts/show.html.erb within layouts/application (280.4ms)
3377
+ Completed 200 OK in 398ms (Views: 314.6ms | ActiveRecord: 5.7ms)
3378
+
3379
+
3380
+
3381
+
3382
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
3383
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
3384
+
3385
+
3386
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
3387
+
3388
+
3389
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:28:00 -0400
3390
+ Served asset /application.js - 304 Not Modified (0ms)
3391
+ Served asset /application.css - 304 Not Modified (3ms)
3392
+ Served asset /jquery.js - 304 Not Modified (0ms)
3393
+ Served asset /jquery_ujs.js - 304 Not Modified (17ms)
3394
+
3395
+
3396
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
3397
+ Processing by AccountsController#update as HTML
3398
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa644a3ca40 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][0][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42137-eyac6j>>}}}, "button"=>"", "id"=>"1"}
3399
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3400
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3401
+  (0.1ms) BEGIN
3402
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3403
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3404
+ SQL (3.5ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:28:05', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:28:05')
3405
+  (0.5ms) COMMIT
3406
+ Redirected to http://modulate.local/accounts
3407
+ Completed 302 Found in 195ms (ActiveRecord: 9.8ms)
3408
+
3409
+
3410
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
3411
+ Processing by AccountsController#index as HTML
3412
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
3413
+ Rendered accounts/index.html.haml within layouts/application (1.0ms)
3414
+ Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.3ms)
3415
+
3416
+
3417
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
3418
+
3419
+
3420
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
3421
+
3422
+
3423
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
3424
+
3425
+
3426
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:05 -0400
3427
+ Served asset /application.js - 304 Not Modified (0ms)
3428
+ Served asset /jquery.js - 304 Not Modified (0ms)
3429
+ Served asset /application.css - 304 Not Modified (0ms)
3430
+ Served asset /jquery_ujs.js - 304 Not Modified (5ms)
3431
+
3432
+
3433
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:28:07 -0400
3434
+ Processing by AccountsController#show as HTML
3435
+ Parameters: {"id"=>"1"}
3436
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3437
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3438
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3439
+ Rendered accounts/_modulate_account_documents.html.haml (10.3ms)
3440
+ Rendered accounts/_modulate_attachments.html.haml (21.9ms)
3441
+ Rendered accounts/show.html.erb within layouts/application (23.1ms)
3442
+ Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.8ms)
3443
+
3444
+
3445
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
3446
+
3447
+
3448
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
3449
+
3450
+
3451
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
3452
+
3453
+
3454
+ Served asset /application.css - 304 Not Modified (0ms)
3455
+ Served asset /jquery.js - 304 Not Modified (6ms)
3456
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:28:08 -0400
3457
+ Served asset /jquery_ujs.js - 304 Not Modified (5ms)
3458
+ Served asset /application.js - 304 Not Modified (0ms)
3459
+
3460
+
3461
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
3462
+ Processing by AccountsController#show as HTML
3463
+ Parameters: {"id"=>"1"}
3464
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3465
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3466
+ Modulate::Document Load (0.2ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3467
+ Rendered accounts/_modulate_account_documents.html.haml (44.2ms)
3468
+ Rendered accounts/_modulate_attachments.html.haml (59.7ms)
3469
+ Rendered accounts/show.html.erb within layouts/application (60.7ms)
3470
+ Completed 200 OK in 79ms (Views: 64.3ms | ActiveRecord: 5.4ms)
3471
+
3472
+
3473
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
3474
+
3475
+
3476
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
3477
+
3478
+
3479
+
3480
+
3481
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
3482
+ Served asset /application.css - 304 Not Modified (0ms)
3483
+ Served asset /jquery.js - 304 Not Modified (0ms)
3484
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:05 -0400
3485
+ Served asset /application.js - 304 Not Modified (8ms)
3486
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3487
+
3488
+
3489
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
3490
+ Processing by AccountsController#show as HTML
3491
+ Parameters: {"id"=>"1"}
3492
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3493
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3494
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3495
+ Rendered accounts/_modulate_account_documents.html.haml (47.9ms)
3496
+ Rendered accounts/_modulate_attachments.html.haml (64.4ms)
3497
+ Rendered accounts/show.html.erb within layouts/application (65.5ms)
3498
+ Completed 200 OK in 87ms (Views: 70.1ms | ActiveRecord: 6.1ms)
3499
+
3500
+
3501
+
3502
+
3503
+
3504
+
3505
+
3506
+
3507
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
3508
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
3509
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
3510
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:09 -0400
3511
+ Served asset /application.css - 304 Not Modified (5ms)
3512
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3513
+ Served asset /application.js - 304 Not Modified (0ms)
3514
+ Served asset /jquery.js - 304 Not Modified (0ms)
3515
+
3516
+
3517
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
3518
+ Processing by AccountsController#show as HTML
3519
+ Parameters: {"id"=>"1"}
3520
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3521
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3522
+ Rendered accounts/_modulate_account_documents.html.haml (2.3ms)
3523
+ Rendered accounts/_modulate_attachments.html.haml (14.0ms)
3524
+ Rendered accounts/show.html.erb within layouts/application (15.0ms)
3525
+ Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.6ms)
3526
+
3527
+
3528
+
3529
+
3530
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
3531
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
3532
+
3533
+
3534
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3535
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
3536
+
3537
+
3538
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:19 -0400
3539
+ Served asset /jquery.js - 304 Not Modified (0ms)
3540
+ Served asset /application.css - 304 Not Modified (0ms)
3541
+ Served asset /application.js - 304 Not Modified (0ms)
3542
+
3543
+
3544
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
3545
+ Processing by AccountsController#update as HTML
3546
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa6428d8160 @original_filename="cavs_report.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cavs_report.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42147-16cs06>>}, {"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa6428d7cd8 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-42147-kkywwg>>}]}, "button"=>"", "id"=>"1"}
3547
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3548
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3549
+  (0.1ms) BEGIN
3550
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3551
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cavs_report.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3552
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3553
+ Modulate::Document Exists (0.4ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3554
+ SQL (2.7ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cavs_report.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:33:25', 'cavs_report.txt', '1-cavs_report.txt', NULL, 0, '2013-03-26 20:33:25')
3555
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:33:25', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:33:25')
3556
+  (10.2ms) COMMIT
3557
+ Redirected to http://modulate.local/accounts
3558
+ Completed 302 Found in 190ms (ActiveRecord: 18.9ms)
3559
+
3560
+
3561
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
3562
+ Processing by AccountsController#index as HTML
3563
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts`
3564
+ Rendered accounts/index.html.haml within layouts/application (1.0ms)
3565
+ Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms)
3566
+
3567
+
3568
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
3569
+
3570
+
3571
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
3572
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3573
+
3574
+
3575
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
3576
+
3577
+
3578
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:25 -0400
3579
+ Served asset /jquery.js - 304 Not Modified (0ms)
3580
+ Served asset /application.js - 304 Not Modified (0ms)
3581
+ Served asset /application.css - 304 Not Modified (0ms)
3582
+
3583
+
3584
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
3585
+ Processing by AccountsController#show as HTML
3586
+ Parameters: {"id"=>"1"}
3587
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3588
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3589
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3590
+ Rendered accounts/_modulate_account_documents.html.haml (11.2ms)
3591
+ Rendered accounts/_modulate_attachments.html.haml (27.9ms)
3592
+ Rendered accounts/show.html.erb within layouts/application (29.0ms)
3593
+ Completed 200 OK in 38ms (Views: 34.9ms | ActiveRecord: 0.8ms)
3594
+
3595
+
3596
+
3597
+
3598
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
3599
+
3600
+
3601
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
3602
+
3603
+
3604
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
3605
+ Served asset /application.css - 304 Not Modified (0ms)
3606
+ Served asset /jquery.js - 304 Not Modified (6ms)
3607
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3608
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:33:29 -0400
3609
+ Served asset /application.js - 304 Not Modified (8ms)
3610
+
3611
+
3612
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
3613
+ Processing by AccountsController#show as HTML
3614
+ Parameters: {"id"=>"1"}
3615
+ Account Load (1.9ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3616
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3617
+ Rendered accounts/_modulate_account_documents.html.haml (2.1ms)
3618
+ Rendered accounts/_modulate_attachments.html.haml (14.8ms)
3619
+ Rendered accounts/show.html.erb within layouts/application (15.7ms)
3620
+ Completed 200 OK in 26ms (Views: 21.5ms | ActiveRecord: 2.2ms)
3621
+
3622
+
3623
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
3624
+
3625
+
3626
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
3627
+
3628
+
3629
+
3630
+
3631
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
3632
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:34:36 -0400
3633
+ Served asset /jquery.js - 304 Not Modified (0ms)
3634
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3635
+ Served asset /application.js - 304 Not Modified (0ms)
3636
+ Served asset /application.css - 304 Not Modified (0ms)
3637
+ Connecting to database specified by database.yml
3638
+
3639
+
3640
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
3641
+ Processing by AccountsController#show as HTML
3642
+ Parameters: {"id"=>"1"}
3643
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3644
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3645
+ Rendered accounts/_modulate_account_documents.html.haml (25.9ms)
3646
+ Rendered accounts/_modulate_attachments.html.haml (61.7ms)
3647
+ Rendered accounts/show.html.erb within layouts/application (62.7ms)
3648
+ Completed 200 OK in 82ms (Views: 67.6ms | ActiveRecord: 4.6ms)
3649
+
3650
+
3651
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
3652
+
3653
+
3654
+
3655
+
3656
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
3657
+
3658
+
3659
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
3660
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:00 -0400
3661
+ Served asset /application.css - 304 Not Modified (0ms)
3662
+ Served asset /jquery.js - 304 Not Modified (0ms)
3663
+ Served asset /application.js - 304 Not Modified (0ms)
3664
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3665
+
3666
+
3667
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
3668
+ Processing by AccountsController#update as HTML
3669
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa642eb8468 @original_filename="cavs_report.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cavs_report.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-39086-yzuuz8>>}, {"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fa642eb5588 @original_filename="cheat_sheet.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"cheat_sheet.txt\"\r\nContent-Type: text/plain\r\n", @tempfile=#<File:/tmp/RackMultipart20130326-39086-17gtxmw>>}]}, "button"=>"", "id"=>"1"}
3670
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3671
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3672
+  (0.1ms) BEGIN
3673
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3674
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cavs_report.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3675
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3676
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3677
+ SQL (3.1ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cavs_report.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:36:06', 'cavs_report.txt', '1-cavs_report.txt', NULL, 0, '2013-03-26 20:36:06')
3678
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (1, 'Account', 1, '1-cheat_sheet.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:36:06', 'cheat_sheet.txt', '1-cheat_sheet.txt', NULL, 0, '2013-03-26 20:36:06')
3679
+  (0.5ms) COMMIT
3680
+ Redirected to http://modulate.local/accounts
3681
+ Completed 302 Found in 183ms (ActiveRecord: 9.8ms)
3682
+
3683
+
3684
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
3685
+ Processing by AccountsController#index as HTML
3686
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts`
3687
+ Rendered accounts/index.html.haml within layouts/application (1.0ms)
3688
+ Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.3ms)
3689
+
3690
+
3691
+
3692
+
3693
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
3694
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
3695
+
3696
+
3697
+
3698
+
3699
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
3700
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:06 -0400
3701
+ Served asset /jquery.js - 304 Not Modified (0ms)
3702
+ Served asset /application.js - 304 Not Modified (0ms)
3703
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3704
+ Served asset /application.css - 304 Not Modified (0ms)
3705
+
3706
+
3707
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
3708
+ Processing by AccountsController#show as HTML
3709
+ Parameters: {"id"=>"1"}
3710
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3711
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3712
+ Modulate::Document Load (0.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3713
+ Rendered accounts/_modulate_account_documents.html.haml (17.7ms)
3714
+ Rendered accounts/_modulate_attachments.html.haml (33.2ms)
3715
+ Rendered accounts/show.html.erb within layouts/application (34.3ms)
3716
+ Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 1.1ms)
3717
+
3718
+
3719
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
3720
+
3721
+
3722
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
3723
+
3724
+
3725
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
3726
+
3727
+
3728
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:09 -0400
3729
+ Served asset /application.css - 304 Not Modified (0ms)
3730
+ Served asset /application.js - 304 Not Modified (0ms)
3731
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3732
+ Served asset /jquery.js - 304 Not Modified (1ms)
3733
+
3734
+
3735
+ Started PUT "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
3736
+ Processing by AccountsController#update as HTML
3737
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"g3+XFBSxVmD2x0P6aT+SHf3ZJif6T/UkMlt1J4JBQr0=", "account"=>{"modulate_documents_attributes"=>{"0"=>{"label"=>"Label 1", "public"=>"0", "id"=>"7"}, "1"=>{"label"=>"Label 2", "public"=>"1", "id"=>"8"}}}, "button"=>"", "id"=>"1"}
3738
+ Account Load (0.2ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3739
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account' AND `modulate_documents`.`id` IN (7, 8)
3740
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3741
+  (0.1ms) BEGIN
3742
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3743
+ Modulate::Document Exists (0.4ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cavs_report.txt' AND `modulate_documents`.`id` != 7 AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3744
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3745
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '1-cheat_sheet.txt' AND `modulate_documents`.`id` != 8 AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
3746
+  (0.3ms) UPDATE `modulate_documents` SET `label` = 'Label 1', `updated_at` = '2013-03-26 20:36:18' WHERE `modulate_documents`.`id` = 7
3747
+  (0.3ms) UPDATE `modulate_documents` SET `label` = 'Label 2', `public` = 1, `updated_at` = '2013-03-26 20:36:18' WHERE `modulate_documents`.`id` = 8
3748
+  (0.4ms) COMMIT
3749
+ Redirected to http://modulate.local/accounts
3750
+ Completed 302 Found in 124ms (ActiveRecord: 7.6ms)
3751
+
3752
+
3753
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
3754
+ Processing by AccountsController#index as HTML
3755
+ Account Load (0.8ms) SELECT `accounts`.* FROM `accounts`
3756
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
3757
+ Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.8ms)
3758
+
3759
+
3760
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
3761
+
3762
+
3763
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
3764
+
3765
+
3766
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
3767
+
3768
+
3769
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:18 -0400
3770
+ Served asset /jquery.js - 304 Not Modified (0ms)
3771
+ Served asset /application.css - 304 Not Modified (0ms)
3772
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
3773
+ Served asset /application.js - 304 Not Modified (8ms)
3774
+
3775
+
3776
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
3777
+ Processing by AccountsController#show as HTML
3778
+ Parameters: {"id"=>"1"}
3779
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3780
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3781
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3782
+ Rendered accounts/_modulate_account_documents.html.haml (10.3ms)
3783
+ Rendered accounts/_modulate_attachments.html.haml (22.6ms)
3784
+ Rendered accounts/show.html.erb within layouts/application (23.7ms)
3785
+ Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 1.1ms)
3786
+
3787
+
3788
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
3789
+
3790
+
3791
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
3792
+ Served asset /application.css - 304 Not Modified (0ms)
3793
+
3794
+
3795
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
3796
+ Served asset /application.js - 304 Not Modified (0ms)
3797
+
3798
+
3799
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:21 -0400
3800
+ Served asset /jquery.js - 304 Not Modified (0ms)
3801
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3802
+
3803
+
3804
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
3805
+ Processing by AccountsController#show as HTML
3806
+ Parameters: {"id"=>"1"}
3807
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3808
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3809
+ Modulate::Document Load (0.2ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3810
+ Rendered accounts/_modulate_account_documents.html.haml (55.4ms)
3811
+ Rendered accounts/_modulate_attachments.html.haml (67.3ms)
3812
+ Rendered accounts/show.html.erb within layouts/application (69.5ms)
3813
+ Completed 200 OK in 78ms (Views: 75.3ms | ActiveRecord: 0.8ms)
3814
+
3815
+
3816
+
3817
+
3818
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
3819
+
3820
+
3821
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
3822
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
3823
+
3824
+
3825
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-26 16:36:25 -0400
3826
+ Served asset /jquery_ujs.js - 200 OK (0ms)
3827
+ Served asset /jquery.js - 200 OK (1ms)
3828
+ Served asset /application.js - 200 OK (0ms)
3829
+ Served asset /application.css - 200 OK (0ms)
3830
+
3831
+
3832
+ Started GET "/accounts/1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
3833
+ Processing by AccountsController#show as HTML
3834
+ Parameters: {"id"=>"1"}
3835
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
3836
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3837
+ Modulate::Document Load (0.2ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 1 AND `modulate_documents`.`attachable_type` = 'Account'
3838
+ Rendered accounts/_modulate_account_documents.html.haml (9.6ms)
3839
+ Rendered accounts/_modulate_attachments.html.haml (21.0ms)
3840
+ Rendered accounts/show.html.erb within layouts/application (22.1ms)
3841
+ Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 1.0ms)
3842
+
3843
+
3844
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
3845
+ Served asset /application.css - 304 Not Modified (0ms)
3846
+
3847
+
3848
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
3849
+ Served asset /jquery.js - 304 Not Modified (0ms)
3850
+
3851
+
3852
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
3853
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
3854
+
3855
+
3856
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-03-27 08:10:55 -0400
3857
+ Served asset /application.js - 304 Not Modified (1ms)
3858
+ Connecting to database specified by database.yml
@@ -156,3 +156,93 @@ Processing by AccountsController#index as HTML
156
156
  Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
157
157
  Rendered accounts/index.html.haml within layouts/application (1.2ms)
158
158
  Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.3ms)
159
+ Connecting to database specified by database.yml
160
+  (0.1ms) BEGIN
161
+ SQL (2.2ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-03-26 20:29:03', 'test_account', '2013-03-26 20:29:03')
162
+  (0.4ms) COMMIT
163
+ Started GET "/accounts/28" for 127.0.0.1 at 2013-03-26 16:29:04 -0400
164
+ Processing by AccountsController#show as HTML
165
+ Parameters: {"id"=>"28"}
166
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1
167
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 28 AND `modulate_documents`.`attachable_type` = 'Account'
168
+ Rendered accounts/_modulate_account_documents.html.haml (101.0ms)
169
+ Rendered accounts/_modulate_attachments.html.haml (269.4ms)
170
+ Rendered accounts/show.html.erb within layouts/application (279.3ms)
171
+ Completed 200 OK in 304ms (Views: 294.6ms | ActiveRecord: 3.0ms)
172
+ Started PUT "/accounts/28" for 127.0.0.1 at 2013-03-26 16:29:04 -0400
173
+ Processing by AccountsController#update as HTML
174
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_documents_attributes"=>{"0"=>{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fc96ecdd478 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][0][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130326-42242-1rkmz9j>>}}}, "button"=>"", "id"=>"28"}
175
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1
176
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 28 AND `modulate_documents`.`attachable_type` = 'Account'
177
+  (0.1ms) BEGIN
178
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 28 LIMIT 1
179
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '28-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
180
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (28, 'Account', 1, '28-test.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:29:56', 'test.txt', '28-test.txt', NULL, 0, '2013-03-26 20:29:56')
181
+  (0.5ms) COMMIT
182
+ Redirected to http://www.example.com/accounts
183
+ Completed 302 Found in 51735ms (ActiveRecord: 1.9ms)
184
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:29:56 -0400
185
+ Processing by AccountsController#index as HTML
186
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
187
+ Rendered accounts/index.html.haml within layouts/application (1.4ms)
188
+ Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.3ms)
189
+ Connecting to database specified by database.yml
190
+  (0.1ms) BEGIN
191
+ SQL (2.6ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-03-26 20:37:24', 'test_account', '2013-03-26 20:37:24')
192
+  (0.4ms) COMMIT
193
+ Started GET "/accounts/29" for 127.0.0.1 at 2013-03-26 16:37:24 -0400
194
+ Processing by AccountsController#show as HTML
195
+ Parameters: {"id"=>"29"}
196
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1
197
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 29 AND `modulate_documents`.`attachable_type` = 'Account'
198
+ Rendered accounts/_modulate_account_documents.html.haml (102.1ms)
199
+ Rendered accounts/_modulate_attachments.html.haml (272.8ms)
200
+ Rendered accounts/show.html.erb within layouts/application (281.9ms)
201
+ Completed 200 OK in 357ms (Views: 297.5ms | ActiveRecord: 3.0ms)
202
+ Started PUT "/accounts/29" for 127.0.0.1 at 2013-03-26 16:37:25 -0400
203
+ Processing by AccountsController#update as HTML
204
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007faa366e4a00 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130326-42672-1mupt3r>>}]}, "button"=>"", "id"=>"29"}
205
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1
206
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 29 AND `modulate_documents`.`attachable_type` = 'Account'
207
+  (0.1ms) BEGIN
208
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 29 LIMIT 1
209
+ Modulate::Document Exists (0.4ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '29-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
210
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (29, 'Account', 1, '29-test.txt', 'Dummy::Account', 'text/plain', '2013-03-26 20:37:25', 'test.txt', '29-test.txt', NULL, 0, '2013-03-26 20:37:25')
211
+  (0.5ms) COMMIT
212
+ Redirected to http://www.example.com/accounts
213
+ Completed 302 Found in 108ms (ActiveRecord: 1.8ms)
214
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-26 16:37:25 -0400
215
+ Processing by AccountsController#index as HTML
216
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
217
+ Rendered accounts/index.html.haml within layouts/application (1.2ms)
218
+ Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.3ms)
219
+ Connecting to database specified by database.yml
220
+  (0.1ms) BEGIN
221
+ SQL (2.1ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-03-27 16:57:32', 'test_account', '2013-03-27 16:57:32')
222
+  (0.3ms) COMMIT
223
+ Started GET "/accounts/30" for 127.0.0.1 at 2013-03-27 12:57:32 -0400
224
+ Processing by AccountsController#show as HTML
225
+ Parameters: {"id"=>"30"}
226
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1
227
+  (0.2ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 30 AND `modulate_documents`.`attachable_type` = 'Account'
228
+ Rendered accounts/_modulate_account_documents.html.haml (64.0ms)
229
+ Rendered accounts/_modulate_attachments.html.haml (327.2ms)
230
+ Rendered accounts/show.html.erb within layouts/application (338.7ms)
231
+ Completed 200 OK in 432ms (Views: 412.4ms | ActiveRecord: 2.9ms)
232
+ Started PUT "/accounts/30" for 127.0.0.1 at 2013-03-27 12:57:33 -0400
233
+ Processing by AccountsController#update as HTML
234
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_documents_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fae95aa4ce0 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_documents_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130327-83727-up8zzj>>}]}, "button"=>"", "id"=>"30"}
235
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1
236
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 30 AND `modulate_documents`.`attachable_type` = 'Account'
237
+  (0.1ms) BEGIN
238
+ CACHE (0.0ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 30 LIMIT 1
239
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '30-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
240
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (30, 'Account', 1, '30-test.txt', 'Dummy::Account', 'text/plain', '2013-03-27 16:57:33', 'test.txt', '30-test.txt', NULL, 0, '2013-03-27 16:57:33')
241
+  (0.4ms) COMMIT
242
+ Redirected to http://www.example.com/accounts
243
+ Completed 302 Found in 67ms (ActiveRecord: 1.8ms)
244
+ Started GET "/accounts" for 127.0.0.1 at 2013-03-27 12:57:33 -0400
245
+ Processing by AccountsController#index as HTML
246
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` 
247
+ Rendered accounts/index.html.haml within layouts/application (1.2ms)
248
+ Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 0.3ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-26 00:00:00.000000000 Z
12
+ date: 2013-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carrierwave-riak
@@ -289,7 +289,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
289
  version: '0'
290
290
  segments:
291
291
  - 0
292
- hash: -1068245406639796726
292
+ hash: -3121422691208428004
293
293
  required_rubygems_version: !ruby/object:Gem::Requirement
294
294
  none: false
295
295
  requirements:
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  version: '0'
299
299
  segments:
300
300
  - 0
301
- hash: -1068245406639796726
301
+ hash: -3121422691208428004
302
302
  requirements: []
303
303
  rubyforge_project:
304
304
  rubygems_version: 1.8.24