Skip to content

Instantly share code, notes, and snippets.

@chrislerum
Last active June 22, 2016 08:50
Show Gist options
  • Save chrislerum/539c2a512e4a83579298cfa89b53f277 to your computer and use it in GitHub Desktop.
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