class ActiveModel::BetterErrors::HumanHashReporter
Public Instance Methods
to_hash()
click to toggle source
# File lib/active_model/better_errors/human_hash_reporter.rb, line 9 def to_hash collection.to_hash.reduce({}) do |hash, kv| attribute, error_message_set = kv hash[attribute] = error_message_set.map do |error_message| ::ActiveModel::BetterErrors.format_message(base, error_message) end hash end end