aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/fixtures/tagging.rb
blob: 4695f0755ecc7701d545357946375c9b43011bae (plain) (tree)
1
2
3
4
5
6
                                  
                                       

                                                                               
                                                                    
  
class Tagging < ActiveRecord::Base
  belongs_to :tag, :include => :tagging
  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