couchrest_model/spec/fixtures/more/event.rb

6 lines
146 B
Ruby

class Event < CouchRest::ExtendedDocument
use_database DB
property :subject
property :occurs_at, :cast_as => 'Time', :send => 'parse'
end