mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
d052e9fb5868a10df33a84bf61f40a32df9e78ec
Example: ActiveSupport::JSON.backend = "JSONGem"
All internal Rails JSON encoding is now handled by
ActiveSupport::JSON.encode(). Use of #to_json is not recommended, as it
may clash with other libraries that overwrite it. However, you can
recover Rails specific functionality
if you really want to use #to_json.
gem 'json'
ActiveSupport::JSON.backend = "JSONGem"
class ActiveRecord::Base
alias to_json rails_to_json
end
Description
No description provided
Languages
Ruby
97.9%
CSS
1.5%
HTML
0.5%