Skip to content

Commit 48a0994

Browse files
committed
fix: ensure setting config.layout to nil manually still behaves the same
1 parent 187e45f commit 48a0994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/inertia_rails/renderer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def render_ssr
4646
end
4747

4848
def layout
49-
configuration.layout
49+
layout = configuration.layout
50+
layout.nil? ? true : layout
5051
end
5152

5253
def shared_data

0 commit comments

Comments
 (0)