Sha256: 4aa84989ca5ade92adb219a3acbe102fb9f475d67479bff0ee9c836e52fdbad1

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 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

2 entries across 2 versions & 1 rubygems

Version Path
acts_as_api-1.0.1 spec/mongoid_dummy/app/models/task.rb
acts_as_api-1.0.0 spec/mongoid_dummy/app/models/task.rb