method
add_from_legacy_details_hash
v6.1.3.1 -
Show latest stable
- Class:
ActiveModel::Errors
add_from_legacy_details_hash(details)private
No documentation available.
# 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