class BlockValidator

Ruby on Rails 3.1.12

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)

Show private methods Implementation detail — not part of the public API.

Methods (inherited)

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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close