aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/member_detail.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/member_detail.rb')
-rw-r--r--activerecord/test/models/member_detail.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/member_detail.rb b/activerecord/test/models/member_detail.rb
index 87f7aab9a2..e121a849d0 100644
--- a/activerecord/test/models/member_detail.rb
+++ b/activerecord/test/models/member_detail.rb
@@ -5,6 +5,7 @@ class MemberDetail < ActiveRecord::Base
belongs_to :organization
has_one :member_type, through: :member
has_one :membership, through: :member
+ has_one :admittable, through: :member, source_type: "Member"
has_many :organization_member_details, through: :organization, source: :member_details
end