diff --git a/app/models/carrierwave_mongoid_medium.rb b/app/models/carrierwave_mongoid_medium.rb index 8a2b05e..eb00058 100644 --- a/app/models/carrierwave_mongoid_medium.rb +++ b/app/models/carrierwave_mongoid_medium.rb @@ -79,7 +79,7 @@ class CarrierwaveMongoidMedium controller_instance.content_type = self.content_type controller_instance.response_body = self.gridfs_object if self.force_download? - controller_instance.response.headers['Content-Disposition'] = "attachment; filename='#{self.attachment_filename}'" + controller_instance.response.headers['Content-Disposition'] = %{attachment; filename="#{self.attachment_filename}"} end end end