Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Last active June 22, 2016 08:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chrislerum/539c2a512e4a83579298cfa89b53f277 to your computer and use it in GitHub Desktop.
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