Skip to content

Instantly share code, notes, and snippets.

@chrislerum

chrislerum/model.rb

Last active Jun 22, 2016
Embed
What would you like to do?
module ActiveModel
class Errors
def full_messages
map do |attribute, message|
if attribute == :name
full_message(' ', message)
else
full_message(attribute, message)
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment