diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-11-21 07:32:44 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-11-21 07:32:44 +0000 |
commit | 440f2890af5462402d1a77daaf1751a66742b974 (patch) | |
tree | f75574e57ea544ba68e9282a680367a16ec6e4ba /activerecord/test/fixtures/author.rb | |
parent | 41fb4904e22859178c3002c2acff342073540a64 (diff) | |
download | rails-440f2890af5462402d1a77daaf1751a66742b974.tar.gz rails-440f2890af5462402d1a77daaf1751a66742b974.tar.bz2 rails-440f2890af5462402d1a77daaf1751a66742b974.zip |
Dynamic finders on association collections respect association :limit. Closes #10227 [Jack Danger Canty]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r-- | activerecord/test/fixtures/author.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb index 782a7d608f..d41d8ac439 100644 --- a/activerecord/test/fixtures/author.rb +++ b/activerecord/test/fixtures/author.rb @@ -16,6 +16,7 @@ class Author < ActiveRecord::Base end has_many :comments, :through => :posts has_many :comments_desc, :through => :posts, :source => :comments, :order => 'comments.id DESC' + has_many :limited_comments, :through => :posts, :source => :comments, :limit => 1 has_many :funky_comments, :through => :posts, :source => :comments has_many :special_posts |