1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Missing object for comparison in ActiveModel::EachValidator example code.

This commit is contained in:
Trey Bean 2010-08-17 12:51:13 -06:00
parent 285690143e
commit bee414748c

View file

@ -48,7 +48,7 @@ module ActiveModel
#
# class TitleValidator < ActiveModel::EachValidator
# def validate_each(record, attribute, value)
# record.errors[attribute] << "must start with 'the'" unless =~ /^the/i
# record.errors[attribute] << "must start with 'the'" unless value =~ /^the/i
# end
# end
#