Permalink
Browse files

fix incorrect output

  • Loading branch information...
1 parent 2eac4e2 commit 82aedbb96d2d6326a2700413ef16890499e11014 @vijaydev vijaydev committed 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 82aedbb

Please sign in to comment.