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:
parent
285690143e
commit
bee414748c
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ module ActiveModel
|
||||||
#
|
#
|
||||||
# class TitleValidator < ActiveModel::EachValidator
|
# class TitleValidator < ActiveModel::EachValidator
|
||||||
# def validate_each(record, attribute, value)
|
# 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
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue