Module CouchRest::Validation::ValidatesAbsent
In: lib/couchrest/validation/validators/absent_field_validator.rb

Methods

Public Instance methods

@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

[Validate]