fix ActiveModel::Validations.validators_on doc

This commit is contained in:
Daichi Arai 2013-06-10 18:34:34 +09:00
parent cbfcd9ddf1
commit d61241b060
1 changed files with 0 additions and 1 deletions

View File

@ -226,7 +226,6 @@ module ActiveModel
# Person.validators_on(:name)
# # => [
# # #<ActiveModel::Validations::PresenceValidator:0x007fe604914e60 @attributes=[:name], @options={}>,
# # #<ActiveModel::Validations::InclusionValidator:0x007fe603bb8780 @attributes=[:age], @options={in:0..99}>
# # ]
def validators_on(*attributes)
attributes.flat_map do |attribute|