13 lines
324 B
Ruby
13 lines
324 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|