]> cat aescling's git repositories - mastodon.git/commitdiff
Paperclip will complain on its own if this variable is missing
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 1 Apr 2017 20:16:26 +0000 (22:16 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 1 Apr 2017 20:16:26 +0000 (22:16 +0200)
app/models/import.rb

index 255063c536895a2540b7a68c0baf2d7cdd0bf888..5384986d8119925930fa938ef5c9aea7762b2d39 100644 (file)
@@ -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