aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-02-21 11:37:08 +0100
committerXavier Noria <fxn@hashref.com>2011-02-21 11:37:08 +0100
commitb481574a33764e2db1caf01c233a9c9ac9723780 (patch)
treeff621c47d30cc38f9d6cfeec2bb9188b5f8b7ebf /activerecord/lib/active_record/validations
parent9297027e082c69e590fc090132cee495ce0fc4b1 (diff)
downloadrails-b481574a33764e2db1caf01c233a9c9ac9723780.tar.gz
rails-b481574a33764e2db1caf01c233a9c9ac9723780.tar.bz2
rails-b481574a33764e2db1caf01c233a9c9ac9723780.zip
copy-edits 8d96b89
Diffstat (limited to 'activerecord/lib/active_record/validations')
-rw-r--r--activerecord/lib/active_record/validations/associated.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/validations/associated.rb b/activerecord/lib/active_record/validations/associated.rb
index 0f5f2a6e99..3a783aeb00 100644
--- a/activerecord/lib/active_record/validations/associated.rb
+++ b/activerecord/lib/active_record/validations/associated.rb
@@ -33,7 +33,9 @@ module ActiveRecord
#
# Configuration options:
# * <tt>:message</tt> - A custom error message (default is: "is invalid")
- # * <tt>:on</tt> - Specifies when this validation is active (default is <tt>nil</tt>, other options <tt>:create</tt>, <tt>:update</tt>).
+ # * <tt>:on</tt> - Specifies when this validation is active. Runs in all
+ # validation contexts by default (+nil+), other options are <tt>:create</tt>
+ # and <tt>:update</tt>.
# * <tt>:if</tt> - Specifies a method, proc or string to call to determine if the validation should
# occur (e.g. <tt>:if => :allow_validation</tt>, or <tt>:if => Proc.new { |user| user.signup_step > 2 }</tt>). The
# method, proc or string should return or evaluate to a true or false value.