mirror of https://github.com/rails/rails
Document any callable can normalize AR attributes
This commit is contained in:
parent
8e939586af
commit
7a7d1185b3
|
@ -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+.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue