Re: [Rails-core] proposal: add option to pretty-print in json renderer

2016-05-23 Thread Rafael Mendonça França
In Rails 5.1 you will be able to change how the JSON is serialized. See https://github.com/rails/rails/pull/21496. On Mon, May 23, 2016 at 7:59 PM Gabriel Burt wrote: > My reading of the action_controller json renderer >

[Rails-core] proposal: add option to pretty-print in json renderer

2016-05-23 Thread Gabriel Burt
My reading of the action_controller json renderer add :json do |json, options| > json = json.to_json(options) unless json.kind_of?(String) is that `options` come from the options hash you