instance method
to_hash
Ruby on Rails 3.0.20
Since v3.0.20Signature
to_hash()
No documentation comment.
Source
# File activemodel/lib/active_model/errors.rb, line 172
def to_hash
hash = ActiveSupport::OrderedHash.new
each { |k, v| (hash[k] ||= []) << v }
hash
end
Defined in activemodel/lib/active_model/errors.rb line 172
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Errors