From d1bd17590b016ad5582ee4ef068a26a145d5dc84 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 5 Apr 2013 17:28:18 -0400 Subject: [PATCH] oops --- app/models/carrierwave_mongoid_medium.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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