From 4f00c70580e376691bd1d6c1f9d09efbaa7bf9c9 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 5 Mar 2006 18:43:56 +0000 Subject: Fixed eager loading problems with single-table inheritance [Rick Olson] Added smarter table aliasing for eager associations for multiple self joins [Rick Olson] (closes #3580) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/topic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/fixtures/topic.rb') diff --git a/activerecord/test/fixtures/topic.rb b/activerecord/test/fixtures/topic.rb index 4c46122450..1941080ec7 100755 --- a/activerecord/test/fixtures/topic.rb +++ b/activerecord/test/fixtures/topic.rb @@ -6,7 +6,7 @@ class Topic < ActiveRecord::Base before_destroy :destroy_children def parent - self.class.find(parent_id) + Topic.find(parent_id) end protected -- cgit v1.2.3