Skip to content

Commit 362cbab

Browse files
committed
Merge pull request rails#16319 from Domon/fix-each-validator-example
Fix example code of EachValidator [ci skip]
2 parents d94a0fe + 524f7b4 commit 362cbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activemodel/lib/active_model/validator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module ActiveModel
7979
# include ActiveModel::Validations
8080
# attr_accessor :title
8181
#
82-
# validates :title, presence: true
82+
# validates :title, presence: true, title: true
8383
# end
8484
#
8585
# It can be useful to access the class that is using that validator when there are prerequisites such

0 commit comments

Comments
 (0)