blob: 4d3878933a0a6a8ba878b4ec17daf20773baba4a (
plain) (
tree)
|
|
class Tagging < ActiveRecord::Base
belongs_to :tag
belongs_to :super_tag, :class_name => 'Tag', :foreign_key => 'super_tag_id'
belongs_to :taggable, :polymorphic => true, :counter_cache => true
end
|