Skip to content
Browse files

add :nodoc: to internal implementations of AM::Validator [ci skip]

  • Loading branch information...
1 parent 9a7702a commit ca802fda663d0aa5edf615d4683b4a55b6e2ffe9 Francesco Rodriguez committed Jul 6, 2012
View
2 activemodel/lib/active_model/validations/clusivity.rb
@@ -2,7 +2,7 @@
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"
View
4 activemodel/lib/active_model/validator.rb
@@ -129,7 +129,7 @@ def validate(record)
# 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 @@ def check_validity!
# +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

0 comments on commit ca802fd

Please sign in to comment.
Something went wrong with that request. Please try again.