aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/author.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-11-21 01:51:57 +0000
committerMichael Koziarski <michael@koziarski.com>2007-11-21 01:51:57 +0000
commit7d459203eedc32f1a88e98acc4b2a4f32a7683f4 (patch)
tree3e33990806b45749ba84ea22acc4f722bb16a5ea /activerecord/test/fixtures/author.rb
parentcf1217a742d1177fee38e4add2acc2f210a8ee7f (diff)
downloadrails-7d459203eedc32f1a88e98acc4b2a4f32a7683f4.tar.gz
rails-7d459203eedc32f1a88e98acc4b2a4f32a7683f4.tar.bz2
rails-7d459203eedc32f1a88e98acc4b2a4f32a7683f4.zip
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
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r--activerecord/test/fixtures/author.rb1
1 files changed, 1 insertions, 0 deletions
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