Created
September 11, 2014 17:52
-
-
Save jmoe/02c7476adac24eddd969 to your computer and use it in GitHub Desktop.
Default MultiJson to pretty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'multi_json' | |
MultiJson.use :yajl | |
unless Rails.env.production? | |
MultiJson.dump_options = {:pretty=>true} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where does this code go?