Sha256: fb7f0a62caf3c22c29a36305079a718fe7bcc7f3e9f1fcd6deaba3079ad505ed

Contents?: true

Size: 296 Bytes

Versions: 11

Compression:

Stored size: 296 Bytes

Contents

module Hicube
  class Tag

    include Mongoid::Document
    include Mongoid::Timestamps

    #
    # Relations
    #
    has_and_belongs_to_many :documents, class_name: 'Hicube::Document'

    field :n, type: String,
      as:           :name
    
    def to_s
      self.name
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hicube-0.0.11 app/models/hicube/tag.rb
hicube-0.0.10 app/models/hicube/tag.rb
hicube-0.0.9 app/models/hicube/tag.rb
hicube-0.0.8 app/models/hicube/tag.rb
hicube-0.0.7 app/models/hicube/tag.rb
hicube-0.0.6 app/models/hicube/tag.rb
hicube-0.0.5 app/models/hicube/tag.rb
hicube-0.0.4 app/models/hicube/tag.rb
hicube-0.0.3 app/models/hicube/tag.rb
hicube-0.0.2 app/models/hicube/tag.rb
hicube-0.0.1 app/models/hicube/tag.rb