1
0
Fork 0
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:
Francesco Rodriguez 2012-06-22 16:48:50 -05:00
parent 1727f4330c
commit 311810b8b2

View file

@ -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