Before adding workers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class Employer < ApplicationRecord
|
||||
has_many :members
|
||||
has_one :id_card_configuration, class_name: 'IdCard::Configuration', dependent: :destroy
|
||||
has_one :id_card_setup, class_name: 'IdCard::Setup', dependent: :destroy
|
||||
|
||||
scope :active, -> { where(active: true) }
|
||||
scope :inactive, -> { where(active: false) }
|
||||
@@ -39,7 +39,7 @@ class Employer < ApplicationRecord
|
||||
end
|
||||
|
||||
def id_card_enabled?
|
||||
self.id_card_configuration.present?
|
||||
self.id_card_setup.present?
|
||||
end
|
||||
|
||||
def claims_check_enabled?
|
||||
|
||||
Reference in New Issue
Block a user