mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-20 13:49:39 +02:00
* Split authentication concern from ApplicationController * Remove empty space * Rubocop fixes
13 lines
323 B
Ruby
13 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
|