lib/lookbook/engine.rb in lookbook-0.4.0.beta.2 vs lib/lookbook/engine.rb in lookbook-0.4.1
- old
+ new
@@ -28,10 +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.preview_display_params ||= {}.with_indifferent_access
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