puzzle-scoreboard/app/controllers/application_controller.rb
sto caa45332b0
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Organise with layouts
2025-03-15 08:44:08 +01:00

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