Organise with layouts
This commit is contained in:
@@ -2,4 +2,16 @@ class ApplicationController < ActionController::Base
|
||||
include Authentication
|
||||
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
||||
allow_browser versions: :modern
|
||||
before_action :set_title, :set_current_user
|
||||
layout "authenticated"
|
||||
|
||||
private
|
||||
|
||||
def set_title
|
||||
@title = "Public scoreboard"
|
||||
end
|
||||
|
||||
def set_current_user
|
||||
@current_user = current_user
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user