From 24c2457a26983c323f0c90d175c00453d853f3b6 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Fri, 5 Oct 2007 19:27:33 +0000 Subject: Don't call attr_readonly on polymorphic belongs_to associations, in case it matches the name of some other non-ActiveRecord class/module. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7748 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/tagging.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/fixtures') diff --git a/activerecord/test/fixtures/tagging.rb b/activerecord/test/fixtures/tagging.rb index 4695f0755e..a1fa1a9750 100644 --- a/activerecord/test/fixtures/tagging.rb +++ b/activerecord/test/fixtures/tagging.rb @@ -1,3 +1,7 @@ +# 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' -- cgit v1.2.3