diff options
author | Xavier Noria <fxn@hashref.com> | 2011-02-21 11:37:08 +0100 |
---|---|---|
committer | Mani Tadayon <bowsersenior@gmail.com> | 2011-02-21 13:44:20 -0800 |
commit | 0d41fa956252a6864455ebc64c037da076355fa1 (patch) | |
tree | 4ad040efe6e5691bb408e8ebc0b6df4a216a1730 /activemodel/lib/active_model/validations.rb | |
parent | 5e69debd7ab2c983f234478fe6c93542c7b46ea6 (diff) | |
download | rails-0d41fa956252a6864455ebc64c037da076355fa1.tar.gz rails-0d41fa956252a6864455ebc64c037da076355fa1.tar.bz2 rails-0d41fa956252a6864455ebc64c037da076355fa1.zip |
copy-edits 8d96b89
Diffstat (limited to 'activemodel/lib/active_model/validations.rb')
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index 5e2c7b411d..98af88b5a0 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -71,8 +71,8 @@ module ActiveModel # end # # Options: - # * <tt>:on</tt> - Specifies the context where this validation is active - # (e.g. <tt>:on => :create</tt> or <tt>:on => :special_rules</tt>) + # * <tt>:on</tt> - Specifies the context where this validation is active + # (e.g. <tt>:on => :create</tt> or <tt>:on => :custom_validation_context</tt>) # * <tt>:allow_nil</tt> - Skip validation if attribute is +nil+. # * <tt>:allow_blank</tt> - Skip validation if attribute is blank. # * <tt>:if</tt> - Specifies a method, proc or string to call to determine |