Skip to content

Commit

Permalink
fix incorrect output
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev authored and fxn committed Jun 6, 2011
1 parent f9087ee commit 0e8857b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/errors.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0e8857b

Please sign in to comment.