Permalink
Browse files

update ActiveModel::Errors#include? documentation [ci skip]

  • Loading branch information...
Francesco Rodriguez
Francesco Rodriguez committed Jun 22, 2012
1 parent 1727f43 commit 311810b8b2a43b9d2fe9c78d02e2df7b0959cc5d
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/errors.rb
@@ -91,7 +91,7 @@ def clear
end
# Returns +true+ if the error messages include an error for the given key
- # +error+, +false+ otherwise.
+ # +attribute+, +false+ otherwise.
#
# person.errors.messages # => { :name => ["can not be nil"] }
# person.errors.include?(:name) # => true

0 comments on commit 311810b

Please sign in to comment.