Fix autoloading deprecation warnings from Rails 6 (#16010)
This commit is contained in:
parent
ed7d459d7f
commit
3f2533ca8e
3 changed files with 14 additions and 8 deletions
|
@ -112,7 +112,9 @@ else
|
|||
)
|
||||
end
|
||||
|
||||
Paperclip.options[:content_type_mappings] = { csv: Import::FILE_TYPES }
|
||||
Rails.application.reloader.to_prepare do
|
||||
Paperclip.options[:content_type_mappings] = { csv: Import::FILE_TYPES }
|
||||
end
|
||||
|
||||
# In some places in the code, we rescue this exception, but we don't always
|
||||
# load the S3 library, so it may be an undefined constant:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue