diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-10-12 16:53:22 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-10-12 16:53:22 +0100 |
commit | 6a016a551109ed2ef78fff8f74aef6b1f4ae96a9 (patch) | |
tree | e16bf8db6d399ac0f383dab9247b1a45effe6959 /activerecord/test/models | |
parent | 1777600e6e11e553ad97b7bc89e4b19e992eb3d3 (diff) | |
download | rails-6a016a551109ed2ef78fff8f74aef6b1f4ae96a9.tar.gz rails-6a016a551109ed2ef78fff8f74aef6b1f4ae96a9.tar.bz2 rails-6a016a551109ed2ef78fff8f74aef6b1f4ae96a9.zip |
Add test_has_many_through_has_one_through
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/member.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/member.rb b/activerecord/test/models/member.rb index b8b22d0fde..c2dd9efe3b 100644 --- a/activerecord/test/models/member.rb +++ b/activerecord/test/models/member.rb @@ -12,4 +12,7 @@ class Member < ActiveRecord::Base has_many :nested_member_types, :through => :member_detail, :source => :member_type has_one :nested_member_type, :through => :member_detail, :source => :member_type + + has_many :nested_sponsors, :through => :sponsor_club, :source => :sponsor + has_one :nested_sponsor, :through => :sponsor_club, :source => :sponsor end |