1 # test that attr_readonly isn't called on the :taggable polymorphic association
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