lib/lookbook/engine.rb in lookbook-0.3.5 vs lib/lookbook/engine.rb in lookbook-0.4.0.beta.1
- old
+ new
@@ -28,9 +28,10 @@
options.preview_paths = options.preview_paths.map(&:to_s)
options.preview_paths += vc_options.preview_paths
options.preview_controller = vc_options.preview_controller if options.preview_controller.nil?
options.preview_srcdoc = true if options.preview_srcdoc.nil?
+ options.preview_display_params ||= {}
options.listen_paths = options.listen_paths.map(&:to_s)
options.listen_paths += options.preview_paths
options.listen_paths << (vc_options.view_component_path || Rails.root.join("app/components"))
end