couchrest_model/spec/fixtures/more/event.rb
Sam Lown c280b3a29b Renaming to CouchRest Model
Refactored basic directory structure.
Moved to ActiveSupport for Validations and Callbacks.
Cleaned up older code, and removed support for text property types.
2010-06-20 22:01:11 +02:00

9 lines
190 B
Ruby

class Event < CouchRest::Model::Base
use_database DB
property :subject
property :occurs_at, Time, :init_method => 'parse'
property :end_date, Date, :init_method => 'parse'
end