Skip to content
Browse files

Merge pull request #16319 from Domon/fix-each-validator-example

Fix example code of EachValidator [ci skip]
  • Loading branch information...
2 parents d94a0fe + 524f7b4 commit 362cbabf3f623401fc5ef9c0078d77983907f0af @senny senny committed Jul 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 activemodel/lib/active_model/validator.rb
View
2 activemodel/lib/active_model/validator.rb
@@ -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

0 comments on commit 362cbab

Please sign in to comment.
Something went wrong with that request. Please try again.