Module: CouchRest::Validation::ValidatesAbsent
- Included in:
- ClassMethods
- Defined in:
- lib/couchrest/validation/validators/absent_field_validator.rb
Overview
class AbsentFieldValidator
Instance Method Summary collapse
Instance Method Details
#validates_absent(*fields) ⇒ Object
67 68 69 70 |
# File 'lib/couchrest/validation/validators/absent_field_validator.rb', line 67 def validates_absent(*fields) opts = opts_from_validator_args(fields) add_validator_to_context(opts, fields, CouchRest::Validation::AbsentFieldValidator) end |