Last active
June 22, 2016 08:50
-
-
Save chrislerum/539c2a512e4a83579298cfa89b53f277 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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