rails/activerecord/lib
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
..
active_record * Add pluggable JSON backends with support for the JSON gem. [rick] 2009-04-23 00:08:40 -07:00
active_record.rb No more free lunch 2009-04-22 16:10:49 -07:00
activerecord.rb Allow frameworks to be required by their gem name (closes #8845) [drnic] 2007-09-22 18:15:05 +00:00