aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations.rb
diff options
context:
space:
mode:
authorPeer Allan <peer@canadadrugs.com>2011-02-18 20:51:56 -0600
committerPeer Allan <peer@canadadrugs.com>2011-02-18 20:51:56 -0600
commit8d96b89110d2c16d395ec3a5dc13e33be76b8e78 (patch)
tree77bc97d8d4201b776b2f6d1d810be39b27d02a41 /activemodel/lib/active_model/validations.rb
parentf41bf6938fd4aa5a83777cc767f7f32ace5f6539 (diff)
downloadrails-8d96b89110d2c16d395ec3a5dc13e33be76b8e78.tar.gz
rails-8d96b89110d2c16d395ec3a5dc13e33be76b8e78.tar.bz2
rails-8d96b89110d2c16d395ec3a5dc13e33be76b8e78.zip
Clarification of ActiveRecord ActiveModel validation documentation
Diffstat (limited to 'activemodel/lib/active_model/validations.rb')
-rw-r--r--activemodel/lib/active_model/validations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
index efd071fedc..5e2c7b411d 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 when this validation is active (default is
- # <tt>:save</tt>, other options <tt>:create</tt>, <tt>:update</tt>).
+ # * <tt>:on</tt> - Specifies the context where this validation is active
+ # (e.g. <tt>:on => :create</tt> or <tt>:on => :special_rules</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