@example [Usage]
class Page property :unwanted_attribute, String property :another_unwanted, String property :yet_again, String validates_absent :unwanted_attribute validates_absent :another_unwanted, :yet_again # a call to valid? will return false unless # all three attributes are blank end
# 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