We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48857e commit f307469Copy full SHA for f307469
lib/tasks/cortex.rake
@@ -221,7 +221,7 @@ namespace :cortex do
221
object_key = media.attachment.arbitrary_url_for args[:old_path]
222
223
begin
224
- image = s3.get_object({bucket: ENV['S3_BUCKET_NAME'], key: object_key})
+ image = s3.get_object({bucket: ENV['S3_BUCKET_NAME'], key: object_key}).body
225
puts "Re-saving image attachment #{media.id} - #{media.attachment_file_name}"
226
media.attachment = image
227
media.save
0 commit comments