Class DataMapper::Validate::ContextualValidators
In: lib/dm-validations/contextual_validators.rb
Parent: Object

@author Guy van den Berg @since 0.9

Methods

clear!   context   contexts   dump   execute  

Public Instance methods

Clear all named context validators off of the resource

Return an array of validators for a named context

@return <Array> An array of validators

Get a hash of named context validators for the resource

@return <Hash> a hash of validators <GenericValidator>

Execute all validators in the named context against the target

@param <Symbol> named_context the context we are validating against @param <Object> target the resource that we are validating @return <Boolean> true if all are valid, otherwise false

[Validate]