1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 13:19:39 +02:00
Maybe/app/controllers/application_controller.rb

16 lines
424 B
Ruby
Raw Normal View History

2024-02-02 09:05:04 -06:00
class ApplicationController < ActionController::Base
include AutoSync, Authentication, Invitable, SelfHostable, StoreLocation
include Pagy::Backend
2024-02-02 09:05:04 -06:00
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
allow_browser versions: :modern
private
def with_sidebar
return "turbo_rails/frame" if turbo_frame_request?
"with_sidebar"
end
2024-02-02 09:05:04 -06:00
end