From 311810b8b2a43b9d2fe9c78d02e2df7b0959cc5d Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Fri, 22 Jun 2012 16:48:50 -0500 Subject: [PATCH] update ActiveModel::Errors#include? documentation [ci skip] --- activemodel/lib/active_model/errors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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