Created
September 10, 2009 11:12
-
-
Save TomK32/184478 to your computer and use it in GitHub Desktop.
This file contains 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
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb | |
index 1dc7c96..cf6d574 100644 | |
--- a/activerecord/lib/active_record/validations.rb | |
+++ b/activerecord/lib/active_record/validations.rb | |
@@ -105,6 +105,7 @@ module ActiveRecord | |
# blank: This title is screwed! | |
def generate_full_message(message, options = {}) | |
keys = [ | |
+ options.delete!(:default), | |
:"full_messages.#{@message}", | |
:'full_messages.format', | |
'{{attribute}} {{message}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment