Sha256: 7f6cfbfffa0b61b300c7973de7d7437470702e7adae07e38c006e298175bf74b
Contents?: true
Size: 240 Bytes
Versions: 2
Compression:
Stored size: 240 Bytes
Contents
class Tagging < ActiveRecord::Base belongs_to :tag belongs_to :taggable, :polymorphic => true validates_uniqueness_of :taggable_id, :scope => [:tag_id, :taggable_type] attr_accessible :taggable_type, :taggable_id, :tag_id end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scoped-tags-0.4.1 | lib/scoped_tags/tagging.rb |
scoped-tags-0.4.0 | lib/scoped_tags/tagging.rb |