mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
* Split authentication concern from ApplicationController * Remove empty space * Rubocop fixes
14 lines
323 B
Ruby
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
|