Files
subtle-storm/app/controllers/application_controller.rb
2025-07-15 22:46:28 +03:00

19 lines
469 B
Ruby

# 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