Sha256: ef8dd595b3faebeda5a4146cae44143fa1b889416fa16d75cec3ede2214492b7
Contents?: true
Size: 247 Bytes
Versions: 2
Compression:
Stored size: 247 Bytes
Contents
class Tag include DataMapper::Resource property :id, Serial property :name, String, :nullable => false, :unique => true, :unique_index => true has n, :taggings def taggables taggings.map { |tagging| tagging.taggable } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dm-tags-0.10.1 | lib/dm-tags/tag.rb |
dm-tags-0.10.0 | lib/dm-tags/tag.rb |