Files
puzzle-scoreboard/app/controllers/concerns/contests_concern.rb
sto 4a4c79ad8a
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Events: kickstart shared scoreboard
2026-07-30 08:33:55 +02:00

8 lines
142 B
Ruby

module ContestsConcern
extend ActiveSupport::Concern
def active_page(path)
request.path.starts_with?(path) ? "active" : ""
end
end