Module | CouchRest::Validation::ClassMethods |
In: |
lib/couchrest/mixins/validation.rb
|
Create a new validator of the given klazz and push it onto the requested context for each of the attributes in the fields list
Given a new context create an instance method of valid_for_<context>? which simply calls valid?(context) if it does not already exist