X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/043d29fd7eb72048cf5d07edfbc20ec5c25af708..227c402ad10059ec35394f2a960a620e5cda73af:/config/initializers/paperclip.rb diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 4db3166ae..3aa1d003e 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -21,5 +21,5 @@ Rails.application.config.after_initialize do |_app| end Paperclip::Attachment.default_options[:url] = "/attachments/:class/:attachment/:id_partition/:style/:fingerprint.:extension" -Paperclip::Attachment.default_options[:path] = "#{ATTACHMENTS_DIR}/:class/:attachment/:id_partition/:style/:fingerprint.:extension" +Paperclip::Attachment.default_options[:path] = "#{Settings.attachments_dir}/:class/:attachment/:id_partition/:style/:fingerprint.:extension" Paperclip::Attachment.default_options[:url_generator] = Paperclip::AssetUrlGenerator