demarches-normaliennes/app/components/dossiers/individual_form_component.rb
2024-05-06 15:56:22 +02:00

11 lines
293 B
Ruby

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