aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/author.rb
diff options
context:
space:
mode:
authorBrandon Keepers <brandon@collectiveidea.com>2008-06-09 11:30:48 -0400
committerrick <technoweenie@gmail.com>2008-06-09 12:05:20 -0400
commite94e53f9cd70bee69759661e9771da3fe0ee9554 (patch)
treeebd08651543a0c28ce6ce0ef6d8a0bc9bf7c4430 /activerecord/test/models/author.rb
parent8bf74c30fe276606214850ae2de76fe0efb08d94 (diff)
downloadrails-e94e53f9cd70bee69759661e9771da3fe0ee9554.tar.gz
rails-e94e53f9cd70bee69759661e9771da3fe0ee9554.tar.bz2
rails-e94e53f9cd70bee69759661e9771da3fe0ee9554.zip
fix eager loading with dynamic finders
Diffstat (limited to 'activerecord/test/models/author.rb')
-rw-r--r--activerecord/test/models/author.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb
index f63af27403..82e069005a 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -1,6 +1,7 @@
class Author < ActiveRecord::Base
has_many :posts
has_many :posts_with_comments, :include => :comments, :class_name => "Post"
+ has_many :posts_with_comments_sorted_by_comment_id, :include => :comments, :class_name => "Post", :order => 'comments.id'
has_many :posts_with_categories, :include => :categories, :class_name => "Post"
has_many :posts_with_comments_and_categories, :include => [ :comments, :categories ], :order => "posts.id", :class_name => "Post"
has_many :posts_containing_the_letter_a, :class_name => "Post"