File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 228
228
end
229
229
end
230
230
if self .options .layout == nil then
231
- self .layout_opts = { }
232
231
self .options .layout = self .app .layout
233
232
end
233
+ if self .options .layout then
234
+ self .layout_opts = { }
235
+ end
234
236
local widget_cls = self .options .render
235
237
if widget_cls == true then
236
238
widget_cls = self .route_name
Original file line number Diff line number Diff line change @@ -105,13 +105,14 @@ class Request
105
105
106
106
-- set default layout if none is specified
107
107
if @options . layout == nil
108
+ @options . layout = @app . layout
109
+
110
+ if @options . layout
108
111
-- NOTE: @layout_opts is a legacy undocumented field, it should be eventually
109
112
-- be removed now that @options can communicate the layout being used
110
113
-- during view rendering
111
114
@layout_opts = {}
112
115
113
- @options . layout = @app . layout
114
-
115
116
widget_cls = @options . render
116
117
widget_cls = @route_name if widget_cls == true
117
118
You can’t perform that action at this time.
0 commit comments