aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-21 01:49:01 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-21 01:49:01 +0000
commitf6379bfe154087bf93e1546bb7626941c77e9da7 (patch)
treee70f0ea717b4c3544fa4d288d809b199a31d313f /activerecord/test/fixtures
parent15b38efde8d997382da4b5e04cb9e7aaafb0fe57 (diff)
downloadrails-f6379bfe154087bf93e1546bb7626941c77e9da7.tar.gz
rails-f6379bfe154087bf93e1546bb7626941c77e9da7.tar.bz2
rails-f6379bfe154087bf93e1546bb7626941c77e9da7.zip
Eager belongs_to :include infers the foreign key from the association name rather than the class name. Closes #10517.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures')
-rw-r--r--activerecord/test/fixtures/author.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb
index 1503e17f87..538ed7ac7f 100644
--- a/activerecord/test/fixtures/author.rb
+++ b/activerecord/test/fixtures/author.rb
@@ -105,5 +105,5 @@ end
class AuthorFavorite < ActiveRecord::Base
belongs_to :author
- belongs_to :favorite_author, :class_name => "Author", :foreign_key => 'favorite_author_id'
+ belongs_to :favorite_author, :class_name => "Author"
end