diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-05-30 14:00:14 -0400 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-05-30 14:04:29 -0400 |
commit | b3dfd7d16cc37dcaf4298fe42e69a56ab3c6b00e (patch) | |
tree | a98a6e09e2067bb4a0505b2d744364f0adb04283 /activerecord/lib/active_record/connection_adapters | |
parent | 88f763b047875483be10f554bc15278b28c86a8c (diff) | |
download | rails-b3dfd7d16cc37dcaf4298fe42e69a56ab3c6b00e.tar.gz rails-b3dfd7d16cc37dcaf4298fe42e69a56ab3c6b00e.tar.bz2 rails-b3dfd7d16cc37dcaf4298fe42e69a56ab3c6b00e.zip |
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
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
0 files changed, 0 insertions, 0 deletions