Module DataMapper::Validations::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

Public Instance methods

TODO: document @api private

Protected Instance methods

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]