couchrest_model/spec/fixtures/models/event.rb
2011-06-09 01:05:22 +02:00

8 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