diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-31 09:33:42 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-31 09:33:42 -0600 |
| commit | dca1081753322aee8ad5ec16257bbfaae503d8ec (patch) | |
| tree | 54d47c73887ec3d65ac0628087adc195a02b4d3e /app | |
| parent | 1d5aca062e1acc78073de4781f090a1714d77634 (diff) | |
save the content type and filename of each new photo.
Diffstat (limited to 'app')
| -rw-r--r-- | app/services/application/handlers/process_photo.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/application/handlers/process_photo.rb b/app/services/application/handlers/process_photo.rb index da2a27d8..0c70a94f 100644 --- a/app/services/application/handlers/process_photo.rb +++ b/app/services/application/handlers/process_photo.rb @@ -11,8 +11,8 @@ class ProcessPhoto photo = @photos.find(message[:photo_id]) photo.image = File.open(message[:file_path]) photo.image_processing = false - #photo.content_type = message[:content_type] - #photo.original_filename = message[:original_filename] + photo.content_type = message[:content_type] + photo.original_filename = message[:original_filename] photo.save! end end |
