From 7d459203eedc32f1a88e98acc4b2a4f32a7683f4 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Wed, 21 Nov 2007 01:51:57 +0000 Subject: Make Dynamic Finders on Association Collections Respect Association :order [patrick.t.joyce, technoweenie]. Closes #10211 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/author.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/fixtures') diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb index 979c72ec63..782a7d608f 100644 --- a/activerecord/test/fixtures/author.rb +++ b/activerecord/test/fixtures/author.rb @@ -15,6 +15,7 @@ class Author < ActiveRecord::Base end end has_many :comments, :through => :posts + has_many :comments_desc, :through => :posts, :source => :comments, :order => 'comments.id DESC' has_many :funky_comments, :through => :posts, :source => :comments has_many :special_posts -- cgit v1.2.3