instance method
details
Ruby on Rails 6.1.7.10
Since v6.1.7.10Signature
details()
Returns a Hash of attributes with an array of their error details.
Updating this hash would still update errors state for backward compatibility, but this behavior is deprecated.
Source
# File activemodel/lib/active_model/errors.rb, line 348
def details
hash = group_by_attribute.transform_values do |errors|
errors.map(&:details)
end
DeprecationHandlingDetailsHash.new(hash)
end
Defined in activemodel/lib/active_model/errors.rb line 348
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors