Module: DataMapper::Validate::Context

Module | DataMapper::Validate::Context
In: | lib/dm-validations/support/context.rb

Module with validation context functionality.

Contexts are implemented using a simple array based stack that is thread local. The default context can be altered by overwriting default_validation_context or will default to :default

### Methods

default_validation_context validation_context

### Public Instance methods

default_validation_context()

TODO: document @api private

### Protected Instance methods

validation_context(context = default_validation_context) {|| ...}

Pushes given context on top of context stack and yields given block, then pops the stack. During block execution contexts previously pushed onto the stack have no effect.

@api private

[Validate]