lib/lookbook/engine.rb in lookbook-0.2.2 vs lib/lookbook/engine.rb in lookbook-0.2.3
- old
+ new
@@ -34,11 +34,10 @@
options.listen_paths << (vc_options.view_component_path || Rails.root.join("app/components"))
end
initializer "lookbook.cable.config" do |app|
if app.config.lookbook.auto_refresh
- config_path = Lookbook::Engine.root.join("config", "lookbook_cable.yml")
- Lookbook::Engine.cable.cable = app.config_for(config_path).with_indifferent_access
+ Lookbook::Engine.cable.cable = {adapter: "async"}.with_indifferent_access
Lookbook::Engine.cable.mount_path = "/cable"
Lookbook::Engine.cable.connection_class = -> { Lookbook::Connection }
end
end