From 8fe67b9ff55cfac79ab399391cc5df928a16f083 Mon Sep 17 00:00:00 2001 From: Ken Collins Date: Fri, 26 Sep 2008 09:17:37 -0400 Subject: [PATCH] Better belongs_to to remove rails 1.2.6 warnings. --- test/helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index dd7effe..ef3ba24 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -96,7 +96,7 @@ class LegacyEmployee < ActiveRecord::Base end class LegacyReport < ActiveRecord::Base - belongs_to :employee, :class_name => 'LegacyEmployee' + belongs_to :employee, :class_name => 'LegacyEmployee', :foreign_key => 'email' end class FooBar < ActiveRecord::Base