aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-10-16 11:48:07 +0200
committerYves Senn <yves.senn@gmail.com>2014-10-16 11:56:50 +0200
commitd4d03a520dff836d54f794f7c644f2f5c952b01b (patch)
treeade3ddaca93169f0f3df9afc276421668d0db5d1 /activerecord/lib/active_record
parentf18a4d07eff6f20871d0e7c48d28d5a9f744a487 (diff)
downloadrails-d4d03a520dff836d54f794f7c644f2f5c952b01b.tar.gz
rails-d4d03a520dff836d54f794f7c644f2f5c952b01b.tar.bz2
rails-d4d03a520dff836d54f794f7c644f2f5c952b01b.zip
test, better describe `SerializationTypeMismatch` behavior. refs #14716.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/attribute_methods/serialization.rb4
1 files changed, 2 insertions, 2 deletions
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
- # <tt>SerializationTypeMismatch</tt> will be raised.
+ # serialized object must be of that class on assignment and retrieval.
+ # Otherwise <tt>SerializationTypeMismatch</tt> will be raised.
#
# ==== Parameters
#