From d4d03a520dff836d54f794f7c644f2f5c952b01b Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Thu, 16 Oct 2014 11:48:07 +0200 Subject: test, better describe `SerializationTypeMismatch` behavior. refs #14716. --- activerecord/lib/active_record/attribute_methods/serialization.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/attribute_methods/serialization.rb b/activerecord/lib/active_record/attribute_methods/serialization.rb index 04a1df37c6..cc82d00b20 100644 --- a/activerecord/lib/active_record/attribute_methods/serialization.rb +++ b/activerecord/lib/active_record/attribute_methods/serialization.rb @@ -8,8 +8,8 @@ module ActiveRecord # object, and retrieved as the same object, then specify the name of that # attribute using this method and it will be handled automatically. The # serialization is done through YAML. If +class_name+ is specified, the - # serialized object must be of that class on retrieval or - # SerializationTypeMismatch will be raised. + # serialized object must be of that class on assignment and retrieval. + # Otherwise SerializationTypeMismatch will be raised. # # ==== Parameters # -- cgit v1.2.3