Froze rails gems
[depot.git] / vendor / rails / activerecord / test / models / tagging.rb
1 # test that attr_readonly isn't called on the :taggable polymorphic association
2 module Taggable
3 end
4
5 class Tagging < ActiveRecord::Base
6 belongs_to :tag, :include => :tagging
7 belongs_to :super_tag, :class_name => 'Tag', :foreign_key => 'super_tag_id'
8 belongs_to :invalid_tag, :class_name => 'Tag', :foreign_key => 'tag_id'
9 belongs_to :taggable, :polymorphic => true, :counter_cache => true
10 end