From 1facce6c244713bb88e4ed70222f0d42b30736de Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Jan 2006 23:40:20 +0000 Subject: allow has_many :through to work with custom :foreign key (closes #3422) [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/post.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activerecord/test/fixtures') diff --git a/activerecord/test/fixtures/post.rb b/activerecord/test/fixtures/post.rb index 97b25179f5..ada18af115 100644 --- a/activerecord/test/fixtures/post.rb +++ b/activerecord/test/fixtures/post.rb @@ -23,6 +23,9 @@ class Post < ActiveRecord::Base has_many :taggings, :as => :taggable has_many :tags, :through => :taggings + has_many :categorizations, :foreign_key => :category_id + has_many :authors, :through => :categorizations + def self.what_are_you 'a post...' end -- cgit v1.2.3