instance method
add_from_legacy_details_hash
Ruby on Rails 6.1.7.10
Since v6.1.7.10 Last seen in v6.1.7.10 PrivateSignature
add_from_legacy_details_hash(details)
No documentation comment.
Parameters
-
detailsreq
Source
# File activemodel/lib/active_model/errors.rb, line 576
def add_from_legacy_details_hash(details)
details.each { |attribute, errors|
errors.each { |error|
type = error.delete(:error)
add(attribute, type, **error)
}
}
end
Defined in activemodel/lib/active_model/errors.rb line 576
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors