# File lib/active_model/errors.rb, line 173 def to_hash hash = ActiveSupport::OrderedHash.new each { |k, v| (hash[k] ||= []) << v } hash end