Skip to content

Commit

Permalink
Document any callable can normalize AR attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Sep 17, 2023
1 parent 8e93958 commit 7a7d118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/normalization.rb
Expand Up @@ -51,7 +51,8 @@ module ClassMethods
#
# ==== 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+.
#
Expand Down

0 comments on commit 7a7d118

Please sign in to comment.