2009-02-25 09:22:11 +01:00
|
|
|
class Event < CouchRest::ExtendedDocument
|
2009-05-28 03:16:50 +02:00
|
|
|
use_database DB
|
2009-02-25 09:22:11 +01:00
|
|
|
|
|
|
|
property :subject
|
|
|
|
property :occurs_at, :cast_as => 'Time', :send => 'parse'
|
2009-09-03 04:54:25 +02:00
|
|
|
property :end_date, :cast_as => 'Date'
|
|
|
|
|
|
|
|
|
2009-02-25 09:22:11 +01:00
|
|
|
end
|