class Member < ApplicationRecord belongs_to :id_card_plan, class_name: 'IdCard::Plan', optional: true belongs_to :employer def id_card_field_exception_values address = Vhcs::PbEntityAddress.find_by(pb_entity_key: self.pb_entity_key) { zipcode: address.zip, state: address.state, family_id: self.family_id } end end