aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/acceptance.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-17 10:54:29 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-17 10:54:29 -0500
commit4bbd05c90e5a62c0316307b3ca7c2262ed98b567 (patch)
tree24a55e469c4c2deef3e32b615b0214020985258c /activemodel/lib/active_model/validations/acceptance.rb
parent0f4359252fa08dfc30de21aca329cb27eddfaee5 (diff)
downloadrails-4bbd05c90e5a62c0316307b3ca7c2262ed98b567.tar.gz
rails-4bbd05c90e5a62c0316307b3ca7c2262ed98b567.tar.bz2
rails-4bbd05c90e5a62c0316307b3ca7c2262ed98b567.zip
fix validations docs
Diffstat (limited to 'activemodel/lib/active_model/validations/acceptance.rb')
-rw-r--r--activemodel/lib/active_model/validations/acceptance.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validations/acceptance.rb b/activemodel/lib/active_model/validations/acceptance.rb
index e628c6f306..38a32c479c 100644
--- a/activemodel/lib/active_model/validations/acceptance.rb
+++ b/activemodel/lib/active_model/validations/acceptance.rb
@@ -1,5 +1,4 @@
module ActiveModel
-
# == Active Model Acceptance Validator
module Validations
class AcceptanceValidator < EachValidator
@@ -59,7 +58,7 @@ module ActiveModel
# The method, proc or string should return or evaluate to a true or
# false value.
# * <tt>:strict</tt> - Specifies whether validation should be strict.
- # See <tt>ActiveModel::Validation#validates!</tt> for more information
+ # See <tt>ActiveModel::Validation#validates!</tt> for more information.
def validates_acceptance_of(*attr_names)
validates_with AcceptanceValidator, _merge_attributes(attr_names)
end