couchrest_model/lib/couchrest/mixins
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
..
attachments.rb moved stuff around and cleaned up some deprecation notices [save/save_doc] 2009-02-02 16:10:07 -08:00
design_doc.rb Started on the ExtendedDocument class with features moved to mixins. 2009-02-02 14:51:41 -08:00
document_queries.rb Started on the ExtendedDocument class with features moved to mixins. 2009-02-02 14:53:46 -08:00
extended_document_mixins.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
properties.rb Started on the ExtendedDocument class with features moved to mixins. 2009-02-02 14:51:41 -08:00
validation.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00
views.rb Started added a validation mixin 2009-02-02 19:21:32 -08:00