DB restructure, print page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user