1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test
Sean Griffin ebe2dd9396 Ensure that instances of ActiveModel::Errors can be marshalled
This commit is a backport of b3dfd7d.

We now use default procs inside of the errors object, which gets
included by default when marshaling anything that includes
`ActiveModel::Validations`. This means that Active Record objects cannot
be marshalled. We strip and apply the default proc ourselves. This will
ensure the objects are YAML serializable as well, since YAML falls back
to marshal implementations now. This is less important, however, as the
errors aren't included when dumping Active Record objects.

Fixes #25165
2016-05-30 14:06:19 -04:00
..
cases Ensure that instances of ActiveModel::Errors can be marshalled 2016-05-30 14:06:19 -04:00
models Remove XML Serialization from core. 2015-08-07 11:01:48 -04:00
validators