aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/acceptance.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-02-21 11:37:08 +0100
committerMani Tadayon <bowsersenior@gmail.com>2011-02-21 13:44:20 -0800
commit0d41fa956252a6864455ebc64c037da076355fa1 (patch)
tree4ad040efe6e5691bb408e8ebc0b6df4a216a1730 /activemodel/lib/active_model/validations/acceptance.rb
parent5e69debd7ab2c983f234478fe6c93542c7b46ea6 (diff)
downloadrails-0d41fa956252a6864455ebc64c037da076355fa1.tar.gz
rails-0d41fa956252a6864455ebc64c037da076355fa1.tar.bz2
rails-0d41fa956252a6864455ebc64c037da076355fa1.zip
copy-edits 8d96b89
Diffstat (limited to 'activemodel/lib/active_model/validations/acceptance.rb')
-rw-r--r--activemodel/lib/active_model/validations/acceptance.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/validations/acceptance.rb b/activemodel/lib/active_model/validations/acceptance.rb
index fba44defc1..4f390613aa 100644
--- a/activemodel/lib/active_model/validations/acceptance.rb
+++ b/activemodel/lib/active_model/validations/acceptance.rb
@@ -37,9 +37,9 @@ module ActiveModel
# Configuration options:
# * <tt>:message</tt> - A custom error message (default is: "must be
# accepted").
- # * <tt>:on</tt> - Specifies when this validation is active (default is
- # <tt>nil</tt>, other options are <tt>:create</tt> and
- # <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>:allow_nil</tt> - Skip validation if attribute is +nil+ (default
# is true).
# * <tt>:accept</tt> - Specifies value that is considered accepted.