instance method
normalize_arguments
Ruby on Rails 7.0.10
Since v6.1.7.10 PrivateSignature
normalize_arguments(attribute, type, **options)
No documentation comment.
Parameters
-
attributereq -
typereq -
optionskeyrest
Source
# File activemodel/lib/active_model/errors.rb, line 491
def normalize_arguments(attribute, type, **options)
# Evaluate proc first
if type.respond_to?(:call)
type = type.call(@base, options)
end
[attribute.to_sym, type, options]
end
Defined in activemodel/lib/active_model/errors.rb line 491
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors