1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib
Sean Griffin b3dfd7d16c Ensure that instances of ActiveModel::Errors can be marshalled
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.

This commit does not include a changelog entry, as 5.0 is still in RC
status at the time of writing, and 5.0.0 will not release with the bug
this fixes.

Fixes #25165
2016-05-30 14:04:29 -04:00
..
active_model Ensure that instances of ActiveModel::Errors can be marshalled 2016-05-30 14:04:29 -04:00
active_model.rb Change RangeError to a more specific ActiveModel::RangeError 2016-05-03 14:46:49 -04:00