Files
rails/activerecord/lib/active_record
rick 3c4c6bd0df * Add pluggable JSON backends with support for the JSON gem. [rick]
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
2009-04-23 00:08:40 -07:00
..
2009-01-18 18:10:58 +00:00
2008-10-05 22:16:26 +01:00
2009-04-22 16:42:14 -07:00
2009-03-16 11:28:36 +00:00
2009-02-24 12:29:25 +00:00
2009-02-24 12:29:25 +00:00
2008-12-07 03:27:53 +01:00
2008-05-25 12:29:00 +01:00
2009-04-05 12:36:36 +01:00
2009-03-16 11:28:36 +00:00
2009-03-15 22:06:50 -05:00