diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-06 00:17:13 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-07-06 00:17:13 -0500 |
commit | ca802fda663d0aa5edf615d4683b4a55b6e2ffe9 (patch) | |
tree | 674c05093efd9676cdb4252d9a5a90007b2e66f1 /activemodel/lib/active_model | |
parent | 9a7702a1df19b8d52d1500b821207efd8c099a54 (diff) | |
download | rails-ca802fda663d0aa5edf615d4683b4a55b6e2ffe9.tar.gz rails-ca802fda663d0aa5edf615d4683b4a55b6e2ffe9.tar.bz2 rails-ca802fda663d0aa5edf615d4683b4a55b6e2ffe9.zip |
add :nodoc: to internal implementations of AM::Validator [ci skip]
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/validations/clusivity.rb | 2 | ||||
-rw-r--r-- | activemodel/lib/active_model/validator.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/validations/clusivity.rb b/activemodel/lib/active_model/validations/clusivity.rb index b632a2bd6b..676457ec0f 100644 --- a/activemodel/lib/active_model/validations/clusivity.rb +++ b/activemodel/lib/active_model/validations/clusivity.rb @@ -2,7 +2,7 @@ require 'active_support/core_ext/range.rb' module ActiveModel module Validations - module Clusivity + module Clusivity #:nodoc: ERROR_MESSAGE = "An object with the method #include? or a proc or lambda is required, " << "and must be supplied as the :in option of the configuration hash" diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb index 2953126c3c..d5d0798704 100644 --- a/activemodel/lib/active_model/validator.rb +++ b/activemodel/lib/active_model/validator.rb @@ -129,7 +129,7 @@ module ActiveModel #:nodoc: # record, attribute and value. # # All Active Model validations are built on top of this validator. - class EachValidator < Validator + class EachValidator < Validator #:nodoc: attr_reader :attributes # Returns a new validator instance. All options will be available via the @@ -168,7 +168,7 @@ module ActiveModel #:nodoc: # +BlockValidator+ is a special +EachValidator+ which receives a block on initialization # and call this block for each attribute being validated. +validates_each+ uses this validator. - class BlockValidator < EachValidator + class BlockValidator < EachValidator #:nodoc: def initialize(options, &block) @block = block super |