mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
Fix: Omit layout for turbo frames with custom sidebar layout (#1024)
* Define layout method * Use with_sidebar method --------- Co-authored-by: Pranav Babu <babu@maindeck.io>
This commit is contained in:
parent
dfc7e1c30c
commit
7ba9830db5
14 changed files with 21 additions and 13 deletions
|
@ -4,4 +4,12 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
# 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
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue