aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/category.rb
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2005-12-20 20:32:47 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2005-12-20 20:32:47 +0000
commit1d2c6ee8f3f7e4b6881f30e6b53582738c2b3ace (patch)
tree2928e565d896bfd8e0e0f8cb3829a8c4a012359a /activerecord/test/fixtures/category.rb
parent1235d26bfbc99a7b7466bddb8ff69eecc585d27f (diff)
downloadrails-1d2c6ee8f3f7e4b6881f30e6b53582738c2b3ace.tar.gz
rails-1d2c6ee8f3f7e4b6881f30e6b53582738c2b3ace.tar.bz2
rails-1d2c6ee8f3f7e4b6881f30e6b53582738c2b3ace.zip
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
Diffstat (limited to 'activerecord/test/fixtures/category.rb')
-rw-r--r--activerecord/test/fixtures/category.rb2
1 files changed, 1 insertions, 1 deletions
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