From 65362af7a8c738effe35b57d856dcf732cbb614f Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Mon, 25 Jun 2012 12:14:50 -0500 Subject: add :nodoc: to internal implementations [ci skip] --- activemodel/lib/active_model/validations/acceptance.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel/lib/active_model/validations/acceptance.rb') diff --git a/activemodel/lib/active_model/validations/acceptance.rb b/activemodel/lib/active_model/validations/acceptance.rb index 38abd0c1fa..c49f831cae 100644 --- a/activemodel/lib/active_model/validations/acceptance.rb +++ b/activemodel/lib/active_model/validations/acceptance.rb @@ -2,7 +2,7 @@ module ActiveModel # == Active Model Acceptance Validator module Validations - class AcceptanceValidator < EachValidator + class AcceptanceValidator < EachValidator #:nodoc: def initialize(options) super(options.reverse_merge(:allow_nil => true, :accept => "1")) end @@ -58,7 +58,7 @@ module ActiveModel # :unless => Proc.new { |user| user.signup_step <= 2 }). # The method, proc or string should return or evaluate to a true or # false value. - # * :strict - Specifies whether validation should be strict. + # * :strict - Specifies whether validation should be strict. # See ActiveModel::Validation#validates! for more information. def validates_acceptance_of(*attr_names) validates_with AcceptanceValidator, _merge_attributes(attr_names) -- cgit v1.2.3