Skip to content

Instantly share code, notes, and snippets.

@TomK32
Created September 10, 2009 11:12
Show Gist options
  • Save TomK32/184478 to your computer and use it in GitHub Desktop.
Save TomK32/184478 to your computer and use it in GitHub Desktop.
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