Sha256: 7913d0e46578353135cb09a700f10a695f09bf239824dae1a6a5827cc85b3200

Contents?: true

Size: 335 Bytes

Versions: 6

Compression:

Stored size: 335 Bytes

Contents

class Task
  include Mongoid::Document
  
  field :heading, :type => String
  field :description, :type => String
  field :time_spent, :type => Integer
  field :done, :type => Boolean
  field :created_at, :type => DateTime
  field :updated_at, :type => DateTime  
  
  embedded_in :user, :class_name => "User", :inverse_of => :task
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
acts_as_api-0.4.4 spec/mongoid_dummy/app/models/task.rb
acts_as_api-0.4.3 spec/mongoid_dummy/app/models/task.rb
acts_as_api_sequel-0.0.1 spec/mongoid_dummy/app/models/task.rb
acts_as_api-0.4.2 spec/mongoid_dummy/app/models/task.rb
acts_as_api-0.4.1 spec/mongoid_dummy/app/models/task.rb
acts_as_api-0.4 spec/mongoid_dummy/app/models/task.rb