Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix incorrect output

  • Loading branch information...
commit 82aedbb96d2d6326a2700413ef16890499e11014 1 parent 2eac4e2
Vijay Dev vijaydev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activemodel/lib/active_model/errors.rb
2  activemodel/lib/active_model/errors.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.