Skip to content

Commit

Permalink
Better belongs_to to remove rails 1.2.6 warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Sep 26, 2008
1 parent 7b35b66 commit 8fe67b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fe67b9

Please sign in to comment.