oops
This commit is contained in:
parent
669be8430d
commit
d1bd17590b
@ -79,7 +79,7 @@ class CarrierwaveMongoidMedium
|
|||||||
controller_instance.content_type = self.content_type
|
controller_instance.content_type = self.content_type
|
||||||
controller_instance.response_body = self.gridfs_object
|
controller_instance.response_body = self.gridfs_object
|
||||||
if self.force_download?
|
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
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user