aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2005-12-20 21:26:27 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2005-12-20 21:26:27 +0000
commit581f12b7b18a6e5205bfabb814f6e9997bf92be8 (patch)
treeb5d0c83acdce528ba2882e1ece6012099b3d253d /activerecord/test
parent90099e9dc287d46178581d6b09d8b42a0a302a04 (diff)
downloadrails-581f12b7b18a6e5205bfabb814f6e9997bf92be8.tar.gz
rails-581f12b7b18a6e5205bfabb814f6e9997bf92be8.tar.bz2
rails-581f12b7b18a6e5205bfabb814f6e9997bf92be8.zip
removed :piggyback in favor of just allowing :select on :through associations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3326 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-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 d0e0dfb770..9be459a80f 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, :piggyback => [:post_id]
+ has_many :authors, :through => :categorizations, :select => 'authors.*, categorizations.post_id'
end
class SpecialCategory < Category