demarches-normaliennes/app/components/application_component.rb

19 lines
371 B
Ruby
Raw Normal View History

class ApplicationComponent < ViewComponent::Base
include ViewComponent::Translatable
include FlipperHelper
2023-11-27 17:06:29 +01:00
delegate :rich_text_area_tag, :dsfr_icon, to: :helpers
def current_user
controller.current_user
end
def current_administrateur
controller.current_administrateur
end
def current_gestionnaire
controller.current_gestionnaire
end
end