mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Add base ApplicationComponent
This commit is contained in:
parent
6672315e6b
commit
a4208f3a9a
1 changed files with 10 additions and 0 deletions
10
app/components/application_component.rb
Normal file
10
app/components/application_component.rb
Normal 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
|
Loading…
Reference in a new issue