Files
sure/app/controllers/application_controller.rb
Dwight Watson 23eaa3e066 Split authentication concern from ApplicationController (#289)
* Split authentication concern from ApplicationController

* Remove empty space

* Rubocop fixes
2024-02-04 13:05:13 -06:00

14 lines
323 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
private
def hosted_app?
ENV["HOSTED"] == "true"
end
helper_method :hosted_app?
end