hoangdangninh
3/30/2017 - 3:14 PM

hot fix json and text/plain problem with paperclip

hot fix json and text/plain problem with paperclip

# in file ~/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/bundler/gems/paperclip-093b4da18444/lib/paperclip.rb
# edit this in self.options

content_type_mappings: {:json => "text/plain"}