From 7e7363c8c3c4114f1e09cc79003cfeda0e0f7052 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 21 Nov 2022 12:22:41 +0100 Subject: [PATCH] refactor(application_component): add current_administrateur --- app/components/application_component.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/components/application_component.rb b/app/components/application_component.rb index 8d88db6c2..9681ab890 100644 --- a/app/components/application_component.rb +++ b/app/components/application_component.rb @@ -9,4 +9,8 @@ class ApplicationComponent < ViewComponent::Base def current_user controller.current_user end + + def current_administrateur + controller.current_administrateur + end end