We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ff8d01 commit 315322aCopy full SHA for 315322a
lib/matestack/ui/core/helper.rb
@@ -36,7 +36,10 @@ def render(*args)
36
if controller_layout == false
37
root_layout = layout ? layout.layout : false
38
else
39
- if controller_layout.nil?
+ # when using the turbo-rails gem, controller_layout is a Proc
40
+ # https://github.com/hotwired/turbo-rails/blob/v1.0.1/app/controllers/turbo/frames/frame_request.rb#L16
41
+ # and not nil or a string indicating which layout to be used like before
42
+ if controller_layout.nil? || controller_layout.is_a?(Proc)
43
root_layout = "application"
44
45
root_layout = controller_layout
0 commit comments