Production Build Working
CI / scan_ruby (push) Failing after 37s
CI / lint (push) Failing after 39s

This commit is contained in:
Jason Jordan
2026-09-16 12:41:44 -04:00
parent 9853d58469
commit 1c80e642f5
51 changed files with 648 additions and 440 deletions
+18 -13
View File
@@ -3,22 +3,27 @@ module Baclight
self.table_name = 'Employers'
has_one :baclight_carrier, through: :baclight_broker
belongs_to :baclight_broker, class_name: "Baclight::Broker", foreign_key: "broker_id"
has_many :baclight_members, class_name: "Baclight::Member", foreign_key: "employer_id", primary_key: "id"
alias_attribute :id, :id
alias_attribute :name, :name
alias_attribute :slug, :slug
alias_attribute :pl_plan_key, :pl_plan_key
alias_attribute :company_pb_entity_key, :company_pb_entity_key
alias_attribute :plan_id, :plan_id
alias_attribute :group_number, :group_number
alias_attribute :effective_date, :effective_date
alias_attribute :active, :active
alias_attribute :initialized, :initialized
alias_attribute :broker_id, :broker_id
alias_attribute :created_at, :created_at
alias_attribute :updated_at, :updated_at
# alias_attribute :id, :id
# alias_attribute :name, :name
# alias_attribute :slug, :slug
# alias_attribute :pl_plan_key, :pl_plan_key
# alias_attribute :company_pb_entity_key, :company_pb_entity_key
# alias_attribute :plan_id, :plan_id
# alias_attribute :group_number, :group_number
# alias_attribute :effective_date, :effective_date
# alias_attribute :active, :active
# alias_attribute :initialized, :initialized
# alias_attribute :broker_id, :broker_id
# alias_attribute :created_at, :created_at
# alias_attribute :updated_at, :updated_at
def carrier_id
self.baclight_broker.carrier_id
end
def belongs_to_levels
self.joins(baclight_broker: :baclight_carrier).select(