handle attahcment with send_file
This commit is contained in:
parent
ab0cfc0036
commit
a699ebdbcc
5 changed files with 19 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue