From d6f37c6ae01c57164a69c6b7e4934d844a0c2a3a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 21 May 2019 01:58:07 -0500 Subject: handle importing posts from json dumps --- config/initializers/paperclip.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config/initializers') 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), +} -- cgit