From a4208f3a9a79fa6c096511a21395c1dcc1d70485 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 21 Oct 2023 00:24:44 +0200 Subject: [PATCH] Add base `ApplicationComponent` --- app/components/application_component.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/components/application_component.rb diff --git a/app/components/application_component.rb b/app/components/application_component.rb new file mode 100644 index 00000000..d9b18556 --- /dev/null +++ b/app/components/application_component.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +class ApplicationComponent < ViewComponent::Base + include ApplicationHelper + + def current_user = helpers.current_user + + def user_signed_in? = helpers.user_signed_in? + +end