class BlockValidator

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

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.

Inherits from

ActiveModel::EachValidator

Methods (defined here)

Private methods

(1) Implementation detail — not part of the public API.

Methods (inherited)

From ActiveModel::EachValidator (4)
From ActiveModel::Validator (4)
From Object (18)

Type at least 2 characters to search.

↑↓ navigate · open · esc close