Skip to content
Snippets Groups Projects
Commit 808017ff authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Paperclip will complain on its own if this variable is missing

parent 60ebfa18
No related branches found
No related tags found
Loading
......@@ -9,6 +9,6 @@ class Import < ApplicationRecord
FILE_TYPES = ['text/plain', 'text/csv'].freeze
has_attached_file :data, url: '/system/:hash.:extension', hash_secret: ENV.fetch('PAPERCLIP_SECRET')
has_attached_file :data, url: '/system/:hash.:extension', hash_secret: ENV['PAPERCLIP_SECRET']
validates_attachment_content_type :data, content_type: FILE_TYPES
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment