aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/errors.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-22 16:48:50 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-22 16:48:50 -0500
commit311810b8b2a43b9d2fe9c78d02e2df7b0959cc5d (patch)
tree3651de4171ff452a27b09370c080299f58700a16 /activemodel/lib/active_model/errors.rb
parent1727f4330cda74f1e02e25c47d2cd02702bed431 (diff)
downloadrails-311810b8b2a43b9d2fe9c78d02e2df7b0959cc5d.tar.gz
rails-311810b8b2a43b9d2fe9c78d02e2df7b0959cc5d.tar.bz2
rails-311810b8b2a43b9d2fe9c78d02e2df7b0959cc5d.zip
update ActiveModel::Errors#include? documentation [ci skip]
Diffstat (limited to 'activemodel/lib/active_model/errors.rb')
-rw-r--r--activemodel/lib/active_model/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index b5894ee98a..cfdd4d615d 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -91,7 +91,7 @@ module ActiveModel
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