Skip to content

Instantly share code, notes, and snippets.

@jmoe
Created September 11, 2014 17:52
Show Gist options
  • Save jmoe/02c7476adac24eddd969 to your computer and use it in GitHub Desktop.
Save jmoe/02c7476adac24eddd969 to your computer and use it in GitHub Desktop.
Default MultiJson to pretty
require 'multi_json'
MultiJson.use :yajl
unless Rails.env.production?
MultiJson.dump_options = {:pretty=>true}
end
@abrambailey
Copy link

Where does this code go?

@atz
Copy link

atz commented Sep 21, 2018

@abrambailey: In an initializer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment