From 1d2c6ee8f3f7e4b6881f30e6b53582738c2b3ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Tue, 20 Dec 2005 20:32:47 +0000 Subject: added :piggyback option to has_many :through relationships to pick up values from the join table as needed git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/category.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/fixtures/category.rb') diff --git a/activerecord/test/fixtures/category.rb b/activerecord/test/fixtures/category.rb index 01938d1405..d0e0dfb770 100644 --- a/activerecord/test/fixtures/category.rb +++ b/activerecord/test/fixtures/category.rb @@ -6,7 +6,7 @@ class Category < ActiveRecord::Base end has_many :categorizations - has_many :authors, :through => :categorizations + has_many :authors, :through => :categorizations, :piggyback => [:post_id] end class SpecialCategory < Category -- cgit v1.2.3