2017-07-09 13:41:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2008-11-15 01:59:12 -05:00
|
|
|
class MemberDetail < ActiveRecord::Base
|
2015-07-11 20:03:05 -04:00
|
|
|
belongs_to :member, inverse_of: false
|
2008-11-15 01:59:12 -05:00
|
|
|
belongs_to :organization
|
2015-07-11 20:03:05 -04:00
|
|
|
has_one :member_type, through: :member
|
|
|
|
has_one :membership, through: :member
|
2018-04-21 15:16:44 -04:00
|
|
|
has_one :admittable, through: :member, source_type: "Member"
|
2010-10-31 07:21:28 -04:00
|
|
|
|
2015-07-11 20:03:05 -04:00
|
|
|
has_many :organization_member_details, through: :organization, source: :member_details
|
2008-11-15 01:59:12 -05:00
|
|
|
end
|