1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
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
..
assets move assets and models 2008-01-18 07:27:03 +00:00
cases * Add pluggable JSON backends with support for the JSON gem. [rick] 2009-04-23 00:08:40 -07:00
connections Adding AR tests for JDBC connections 2009-01-26 16:08:44 +13:00
fixtures Ensure has_many :through works with changed primary keys [#736 state:resolved] 2009-03-09 13:43:28 +00:00
migrations Made migrations transactional for PostgreSQL [#834 state:resolved] 2008-08-22 14:46:25 -07:00
models Fix tests for sqlite3 3.6.xx 2009-04-21 13:06:26 +01:00
schema Fixed dumping from postgresql columns in index in wrong order. [#2515 state:resolved] 2009-04-21 11:44:13 +01:00
config.rb Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/rails 2008-01-21 17:20:51 +00:00