18 lines
430 B
Ruby
18 lines
430 B
Ruby
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
|