lib/lookbook/preview_controller.rb in lookbook-0.4.6 vs lib/lookbook/preview_controller.rb in lookbook-0.4.7
- old
+ new
@@ -14,9 +14,9 @@
render_to_string template, opts
end
def render_in_layout_to_string(template, locals, layout = nil)
append_view_path Lookbook::Engine.root.join("app/views")
- render_to_string template, locals: locals, **determine_layout(@preview.lookbook_layout)
+ render_to_string template, locals: locals, **determine_layout(layout)
end
end
end