Fix example code of EachValidator [ci skip]

We have to specify the `:title` option to really use the
`TitleValidator` defined above.
This commit is contained in:
Chun-wei Kuo 2014-07-28 18:21:33 +08:00
parent d94a0fe6b8
commit 524f7b494a

@ -79,7 +79,7 @@ module ActiveModel
# include ActiveModel::Validations
# attr_accessor :title
#
# validates :title, presence: true
# validates :title, presence: true, title: true
# end
#
# It can be useful to access the class that is using that validator when there are prerequisites such