Add base `ApplicationComponent`

This commit is contained in:
Andreas Nedbal 2023-10-21 00:24:44 +02:00 committed by Andreas Nedbal
parent 6672315e6b
commit a4208f3a9a
1 changed files with 10 additions and 0 deletions

View File

@ -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