aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/acceptance.rb
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-16 01:23:46 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-16 01:23:46 -0500
commit95e14d1523ae075a39ce6c6efe68b13db43a16d8 (patch)
tree41c9edcbfe43412f3e1896ce352761af87a89fda /activemodel/lib/active_model/validations/acceptance.rb
parentd8e84738ea810c7fac645349945ee765a5fc3cc4 (diff)
downloadrails-95e14d1523ae075a39ce6c6efe68b13db43a16d8.tar.gz
rails-95e14d1523ae075a39ce6c6efe68b13db43a16d8.tar.bz2
rails-95e14d1523ae075a39ce6c6efe68b13db43a16d8.zip
better format and fixes to validators docs
Diffstat (limited to 'activemodel/lib/active_model/validations/acceptance.rb')
-rw-r--r--activemodel/lib/active_model/validations/acceptance.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/validations/acceptance.rb b/activemodel/lib/active_model/validations/acceptance.rb
index e628c6f306..7ce7700079 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
@@ -23,7 +22,7 @@ module ActiveModel
module HelperMethods
# Encapsulates the pattern of wanting to validate the acceptance of a
- # terms of service check box (or similar agreement). Example:
+ # terms of service check box (or similar agreement).
#
# class Person < ActiveRecord::Base
# validates_acceptance_of :terms_of_service
@@ -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