mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
update ActiveModel::Errors#include? documentation [ci skip]
This commit is contained in:
parent
1727f4330c
commit
311810b8b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue