Skip to content

Commit a967d35

Browse files
authored
Merge pull request rails#49309 from rails/doc-normalizes
Document any callable can normalize AR attributes
2 parents af20a14 + 7a7d118 commit a967d35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activerecord/lib/active_record/normalization.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ module ClassMethods
5151
#
5252
# ==== Options
5353
#
54-
# * +:with+ - The normalization to apply.
54+
# * +:with+ - Any callable object that accepts the attribute's value as
55+
# its sole argument, and returns it normalized.
5556
# * +:apply_to_nil+ - Whether to apply the normalization to +nil+ values.
5657
# Defaults to +false+.
5758
#

0 commit comments

Comments
 (0)