dfdcd79a58
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
5 lines
No EOL
280 B
Ruby
5 lines
No EOL
280 B
Ruby
require File.join(File.dirname(__FILE__), 'properties')
|
|
require File.join(File.dirname(__FILE__), 'document_queries')
|
|
require File.join(File.dirname(__FILE__), 'views')
|
|
require File.join(File.dirname(__FILE__), 'design_doc')
|
|
require File.join(File.dirname(__FILE__), 'validation') |