2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-04-12 17:59:50 +02:00
|
|
|
class Dossiers::IndividualFormComponent < ApplicationComponent
|
|
|
|
delegate :for_tiers?, to: :@dossier
|
|
|
|
|
|
|
|
def initialize(dossier:)
|
|
|
|
@dossier = dossier
|
|
|
|
end
|
|
|
|
|
|
|
|
def email_notifications?(individual)
|
|
|
|
individual.object.notification_method == Individual.notification_methods[:email]
|
|
|
|
end
|
|
|
|
end
|