blob: 51c3bd36041bfc0bbbc81d3275e317350f49a700 (
plain) (
blame)
1
2
3
4
5
6
|
class Tagging < ActiveRecord::Base
belongs_to :tag
belongs_to :super_tag, :class_name => 'Tag', :foreign_key => 'super_tag_id'
belongs_to :invalid_tag, :class_name => 'Tag', :foreign_key => 'tag_id'
belongs_to :taggable, :polymorphic => true, :counter_cache => true
end
|