aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/category.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-02-23 00:17:01 +0000
committerJon Leighton <j@jonathanleighton.com>2011-02-28 22:12:34 +0000
commitd90b4e2615e8048fdeffc6dffe3246704adee01f (patch)
treea17aeea81d5070a55de874fa6617f7212429ae1f /activerecord/test/models/category.rb
parent7112cf5e021d8da7c4e073a4e2d2a4afb10671ec (diff)
downloadrails-d90b4e2615e8048fdeffc6dffe3246704adee01f.tar.gz
rails-d90b4e2615e8048fdeffc6dffe3246704adee01f.tar.bz2
rails-d90b4e2615e8048fdeffc6dffe3246704adee01f.zip
Rewrote AssociationPreload.
Diffstat (limited to 'activerecord/test/models/category.rb')
-rw-r--r--activerecord/test/models/category.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/models/category.rb b/activerecord/test/models/category.rb
index 06908ea85e..8f37433ec6 100644
--- a/activerecord/test/models/category.rb
+++ b/activerecord/test/models/category.rb
@@ -22,7 +22,8 @@ class Category < ActiveRecord::Base
end
has_many :categorizations
- has_many :authors, :through => :categorizations, :select => 'authors.*, categorizations.post_id'
+ has_many :authors, :through => :categorizations
+ has_many :authors_with_select, :through => :categorizations, :source => :author, :select => 'authors.*, categorizations.post_id'
scope :general, :conditions => { :name => 'General' }
end