Projects selector

This commit is contained in:
2025-07-15 22:46:28 +03:00
parent 434b5b184e
commit 991ff51aae
11 changed files with 202 additions and 4 deletions
+13
View File
@@ -1,5 +1,18 @@
# frozen_string_literal: true
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
helper_method :all_projects, :current_project
private
# Needed in projects selector (and can be used anywhere else)
def all_projects
Project.order(:name)
end
attr_accessor :current_project
end