Sha256: c4516cd6cde1e4710dcca259a51598548bf9f44033fa83cd18e8a2e4ad6ccac3

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

class Tag
  include DataMapper::Resource
  property :id, Integer, :serial => true
  property :name, String, :nullable => false, :unique => true

  has n, :taggings

  def taggables
    taggings.map{|tagging| tagging.taggable}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dm-tags-0.9.7 lib/dm-tags/tag.rb