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/support
Sean Griffin 4e7217027f Add YAML compatibility for objects from Rails 4.2
As of Ruby 2.2, Psych can handle any object which is marshallable. This
was not true on previous versions of Ruby, so our delegator types had to
provide their own implementation of `init_with` and `encode_with`.
Unfortunately, this doesn't match up with what Psych will do today.

Since by the time we hit this layer, the objects will have already been
created, I think it makes the most sense to just grab the current type
from the class.
2015-03-10 11:56:45 -06:00
..
yaml_compatibility_fixtures Add YAML compatibility for objects from Rails 4.2 2015-03-10 11:56:45 -06:00
config.rb Add require 'pathname' as it has not already been required in some circumstances 2011-06-17 14:55:34 +01:00
connection.rb Deprecate use of string in establish_connection as connection lookup 2013-12-24 10:18:54 +01:00
connection_helper.rb Add ConnectionHelper to refactor tests. 2014-04-03 01:06:43 -07:00
ddl_helper.rb fk: :primary_key option for non-standard pk's. 2014-06-26 22:03:48 +02:00
schema_dumping_helper.rb Reset ActiveRecord::SchemaDumper.ignore_tables value after changed in tests 2014-09-03 11:30:36 +09:00