Sha256: d3a808ab9b8739f41052f931d217f576c1f84799c7e2485964fab3231a3ab57d
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
class Tagging include DataMapper::Resource property :id, Serial property :tag_id, Integer, :nullable => false property :taggable_id, Integer, :nullable => false property :taggable_type, String, :nullable => false property :tag_context, String, :nullable => false belongs_to :tag def taggable eval("#{taggable_type}.get!(#{taggable_id})") if taggable_type and taggable_id end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dm-tags-0.9.10 | lib/dm-tags/tagging.rb |
dm-tags-0.9.8 | lib/dm-tags/tagging.rb |
dm-tags-0.9.9 | lib/dm-tags/tagging.rb |