Files
puzzle-scoreboard/app/controllers/application_controller.rb
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