handle attahcment with send_file

This commit is contained in:
Dmitriy Zaporozhets 2013-02-11 21:31:19 +02:00
parent ab0cfc0036
commit a699ebdbcc
5 changed files with 19 additions and 2 deletions

View file

@ -19,4 +19,8 @@ class AttachmentUploader < CarrierWave::Uploader::Base
rescue
false
end
def secure_url
"/files/#{model.class.to_s.underscore}/#{model.id}/#{file.filename}"
end
end