Sha256: 744620c692095555c73e72e9defc5db36bc8ff11722a30b6c45b314805b3c7af

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

class MongoTask
  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 => "MongoUser", :inverse_of => :task
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_api-0.3.11 spec/rails_app/app/models/mongo_task.rb
acts_as_api-0.3.10 spec/rails_app/app/models/mongo_task.rb
acts_as_api-0.3.9 spec/rails_app/app/models/mongo_task.rb
acts_as_api-0.3.8 spec/rails_app/app/models/mongo_task.rb
acts_as_api-0.3.7 spec/rails_app/app/models/mongo_task.rb
acts_as_api-0.3.6 spec/rails_app/app/models/mongo_task.rb