5292899c9a
Updated Instiki to Rails 2.1 RC1 (aka 2.0.991).
10 lines
402 B
Ruby
10 lines
402 B
Ruby
# test that attr_readonly isn't called on the :taggable polymorphic association
|
|
module Taggable
|
|
end
|
|
|
|
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 |