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/cases
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
..
serializers Remove XML Serialization from core. 2015-08-07 11:01:48 -04:00
type Check for the right exception 2016-05-03 17:21:05 -05:00
validations Support for unified Integer class in Ruby 2.4+ 2016-05-18 22:04:22 -07:00
attribute_assignment_test.rb Fix test failures caused by #21000 2015-11-23 15:19:39 -07:00
attribute_methods_test.rb
callbacks_test.rb Deprecate passing string to define callback. 2015-12-16 19:56:20 +09:00
conversion_test.rb
dirty_test.rb Add ActiveModel::Dirty#[attr_name]_previously_changed? and 2015-04-21 19:30:46 +02:00
errors_test.rb Ensure that instances of ActiveModel::Errors can be marshalled 2016-05-30 14:06:19 -04:00
forbidden_attributes_protection_test.rb Update and fix forbidden attributes tests 2015-11-03 11:34:07 -08:00
helper.rb Remove load_paths file 2016-02-27 13:03:57 -05:00
lint_test.rb
model_test.rb Follow-up to #10776 2015-02-26 15:40:03 +01:00
naming_test.rb
railtie_test.rb
secure_password_test.rb Allow password to contain spaces only. 2014-08-06 22:11:06 +03:00
serialization_test.rb ensure method_missing called for non-existing methods passed to 2015-04-28 21:06:30 -04:00
translation_test.rb add test for nested model translation 2015-12-03 14:37:05 +09:00
types_test.rb Take UTC offset into account when assigning string value to time attribute. 2016-01-05 18:35:04 +03:00
validations_test.rb Add test case for interpolation with passing of data along with record attribute in error message, where a proc is passed. 2016-04-05 14:18:44 +05:30