app/controllers/lookbook/app_controller.rb in lookbook-0.4.1 vs app/controllers/lookbook/app_controller.rb in lookbook-0.4.2
- old
+ new
@@ -94,12 +94,11 @@
label: example.label,
html: preview_controller.render_example_to_string(@preview, example.name)
}
end
set_params
- layout = @preview.lookbook_layout || Rails.configuration.view_component.default_preview_layout || current_layout
- preview_controller.render_in_layout_to_string("lookbook/preview/group", {examples: examples}, layout)
+ preview_controller.render_in_layout_to_string("lookbook/preview/group", {examples: examples}, @preview.lookbook_layout)
else
set_params(@example)
preview_controller.params[:path] = "#{@preview.preview_name}/#{@example.name}".chomp("/")
preview_controller.process(:previews)
end
@@ -110,13 +109,9 @@
preview_controller.params.merge!({
lookbook: {
display: example_params
}
})
- end
-
- def current_layout
- preview_controller.send :_layout, preview_controller.lookup_context, [:html]
end
def assign_inspector
@inspector = {
panes: {