Add base `ApplicationComponent`
This commit is contained in:
parent
6672315e6b
commit
a4208f3a9a
|
@ -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
|
Loading…
Reference in New Issue