File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ module ClassMethods
49
49
# By default, the normalization will not be applied to +nil+ values. This
50
50
# behavior can be changed with the +:apply_to_nil+ option.
51
51
#
52
+ # Be aware that if your app was created before Rails 7.1, and your app
53
+ # marshals instances of the targeted model (for example, when caching),
54
+ # then you should set ActiveRecord.marshalling_format_version to +7.1+ or
55
+ # higher via either <tt>config.load_defaults 7.1</tt> or
56
+ # <tt>config.active_record.marshalling_format_version = 7.1</tt>.
57
+ # Otherwise, +Marshal+ may attempt to serialize the normalization +Proc+
58
+ # and raise +TypeError+.
59
+ #
52
60
# ==== Options
53
61
#
54
62
# * +:with+ - Any callable object that accepts the attribute's value as
You can’t perform that action at this time.
0 commit comments