DB restructure, print page

This commit is contained in:
Jason Jordan
2026-03-13 08:47:13 -04:00
parent 6a068243f4
commit 8c885b3e76
73 changed files with 1362 additions and 325 deletions
+9 -1
View File
@@ -1,6 +1,6 @@
class Employer < ApplicationRecord
has_many :members
has_one :id_card_setup, class_name: 'IdCard::Setup', dependent: :destroy
has_one :id_card_configuration, class_name: 'IdCard::Configuration', dependent: :destroy
scope :active, -> { where(active: true) }
scope :inactive, -> { where(active: false) }
@@ -38,6 +38,14 @@ class Employer < ApplicationRecord
self.slug = employer_trim_name(self.name).parameterize
end
def id_card_enabled?
self.id_card_configuration.present?
end
def claims_check_enabled?
false
end
# def name_to_logo_filename(extension)
# self.employer_trim_name(self.name).titleize.gsub(/\s+/, '').concat('Logo').concat(extension.downcase)
# end