diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-03 23:39:09 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-04 15:45:13 -0400 |
commit | 812469943cc6eddc132d137a0d5929b2c5d0346f (patch) | |
tree | 07e3cdbb65d8c2440a877d8e45c49e721607c66f /activerecord/test/models | |
parent | db113d90caabf7a5d16aef4b61d41155eb5b86c6 (diff) | |
download | rails-812469943cc6eddc132d137a0d5929b2c5d0346f.tar.gz rails-812469943cc6eddc132d137a0d5929b2c5d0346f.tar.bz2 rails-812469943cc6eddc132d137a0d5929b2c5d0346f.zip |
has_many through obeys order on through association
fixes #10016
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/owner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/owner.rb b/activerecord/test/models/owner.rb index fea55f4535..1c7ed4aa3e 100644 --- a/activerecord/test/models/owner.rb +++ b/activerecord/test/models/owner.rb @@ -1,5 +1,5 @@ class Owner < ActiveRecord::Base self.primary_key = :owner_id - has_many :pets + has_many :pets, -> { order 'pets.name desc' } has_many :toys, :through => :pets end |