Module: DataMapper::Validate::Context
- Included in:
- DataMapper::Validate
- Defined in:
- lib/dm-validations/support/context.rb
Overview
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
Instance Method Summary collapse
-
#default_validation_context ⇒ Object
private
TODO: document.
Instance Method Details
#default_validation_context ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
TODO: document
15 16 17 |
# File 'lib/dm-validations/support/context.rb', line 15 def default_validation_context current_validation_context || :default end |