Its been a while
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
module Baclight
|
||||
class Member < BaclightRecord
|
||||
|
||||
self.table_name = 'Members'
|
||||
|
||||
belongs_to :baclight_employer, class_name: "Baclight::Employer", foreign_key: "employer_id"
|
||||
|
||||
scope :active, -> {
|
||||
where(active: true)
|
||||
}
|
||||
|
||||
# alias_attribute :id, :id
|
||||
# alias_attribute :name, :name
|
||||
# alias_attribute :family_id, :family_id
|
||||
# alias_attribute :mb_member_key, :mb_member_key
|
||||
# alias_attribute :pb_entity_key, :pb_entity_key
|
||||
# alias_attribute :pl_plan_key, :pl_plan_key
|
||||
# alias_attribute :id_card_display_name, :id_card_display_name
|
||||
# alias_attribute :coverage_class, :coverage_class
|
||||
# alias_attribute :division, :division
|
||||
# alias_attribute :dental_plan_key, :dental_plan_key
|
||||
# alias_attribute :dependents, :dependents
|
||||
# alias_attribute :employer_id, :employer_id
|
||||
# alias_attribute :id_card_plan_id, :id_card_plan_id
|
||||
# alias_attribute :created_at, :created_at
|
||||
# alias_attribute :updated_at, :updated_at
|
||||
|
||||
# def member_belongs_to
|
||||
# {
|
||||
# broker_id: baclight_employer&.broker_id,
|
||||
# carrier_id: baclight_employer&.baclight_broker&.carrier_id
|
||||
# }
|
||||
# end
|
||||
|
||||
def broker_id
|
||||
baclight_employer&.broker_id
|
||||
end
|
||||
|
||||
def carrier_id
|
||||
baclight_employer&.baclight_broker&.carrier_id
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user