couchrest_model/lib/couchrest/validation/validators
Matt Aimonetti dfdcd79a58 Started added a validation mixin
Usage:
  class Invoice < CouchRest::ExtendedDocument
    include CouchRest::Validation

    property :client_name
    property :employee_name
    property :location

    # Validation
    validates_present :client_name, :employee_name
    validates_present :location, :message => "Hey stupid!, you forgot the location"

  end
2009-02-02 19:21:32 -08:00
..
formats Started added a validation mixin 2009-02-02 19:21:32 -08:00
absent_field_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
format_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
generic_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
length_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
method_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
numeric_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
required_field_validator.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00