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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user