diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-28 14:00:40 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-28 14:00:40 +0200 |
commit | 362cbabf3f623401fc5ef9c0078d77983907f0af (patch) | |
tree | 4f53c06ad33569b517cc79582913d2610a65a4e0 | |
parent | d94a0fe6b849d3424200eaa74f1b23eef9668fa3 (diff) | |
parent | 524f7b494a758f554d899f11bcbc9827cec6d963 (diff) | |
download | rails-362cbabf3f623401fc5ef9c0078d77983907f0af.tar.gz rails-362cbabf3f623401fc5ef9c0078d77983907f0af.tar.bz2 rails-362cbabf3f623401fc5ef9c0078d77983907f0af.zip |
Merge pull request #16319 from Domon/fix-each-validator-example
Fix example code of EachValidator [ci skip]
-rw-r--r-- | activemodel/lib/active_model/validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb index 65cb1e5a88..0116de68ab 100644 --- a/activemodel/lib/active_model/validator.rb +++ b/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 |