Sha256: 6bbc2ac8bec345590d4fc63aeb6fc6f39ada46be4cd575e4ea9607b87d105ddc

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

class Label
  include Mongoid::Document  
  field :name
  
  belongs_to :active_meta, :class_name => "ActiveMeta"
  
  has_many :notes, :class_name => "Note"
  has_many :histories, :class_name => "History"
  has_many :attachments, :class_name => "Attachment"
  has_many :watchers, :class_name => "Watcher"
  
  index :name
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_metadata-0.2.2 lib/model/mongoid/label.rb
active_metadata-0.2.1 lib/model/mongoid/label.rb
active_metadata-0.2.0 lib/model/mongoid/label.rb
active_metadata-0.1.9 lib/model/mongoid/label.rb