Document any callable can normalize AR attributes

This commit is contained in:
Xavier Noria 2023-09-17 10:31:49 +02:00
parent 8e939586af
commit 7a7d1185b3
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ module ActiveRecord # :nodoc:
#
# ==== Options
#
# * +:with+ - The normalization to apply.
# * +:with+ - Any callable object that accepts the attribute's value as
# its sole argument, and returns it normalized.
# * +:apply_to_nil+ - Whether to apply the normalization to +nil+ values.
# Defaults to +false+.
#