Permalink
Browse files

fix incorrect output

  • Loading branch information...
1 parent f9087ee commit 0e8857b65ef4d8cf11c9c01c2c3b0ca5a0bdad3b @vijaydev vijaydev committed with fxn Jun 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/errors.rb
@@ -248,7 +248,7 @@ def add_on_blank(attributes, options = {})
#
# company = Company.create(:address => '123 First St.')
# company.errors.full_messages # =>
- # ["Name is too short (minimum is 5 characters)", "Name can't be blank", "Address can't be blank"]
+ # ["Name is too short (minimum is 5 characters)", "Name can't be blank", "Email can't be blank"]
def full_messages
map { |attribute, message|
if attribute == :base

0 comments on commit 0e8857b

Please sign in to comment.