diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-05-21 01:58:07 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:17:31 -0500 |
commit | d6f37c6ae01c57164a69c6b7e4934d844a0c2a3a (patch) | |
tree | d6fc393472fc7b3e056cb1a5a7c13c3bd1de77f6 /config/initializers | |
parent | cbdadfb5fa8088edb4b0ec879faf58b0d8272664 (diff) |
handle importing posts from json dumps
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/paperclip.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index ce4185e02..3c35f60e0 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -84,3 +84,9 @@ else url: (ENV['PAPERCLIP_ROOT_URL'] || '/system') + '/:class/:attachment/:id_partition/:style/:filename', ) end + +Paperclip.options[:content_type_mappings] = { + json: %w(text/plain text/html application/json application/json+ld), + jsonld: %w(text/plain text/html application/json application/json+ld), + csv: %w(text/plain), +} |