rails / solid_cable

A database backed ActionCable adapter
MIT License
204 stars 14 forks source link

undefined method `silence' for nil (NoMethodError) #38

Closed navidemad closed 1 month ago

navidemad commented 1 month ago

When we are setting in our application: config.active_record.logger = nil We are getting

Error:
ActionCable::SubscriptionAdapter::SolidCableTest#test_silencing_polling_queries_when_there's_no_Active_Record_logger:
NoMethodError: undefined method `silence' for nil
    lib/action_cable/subscription_adapter/solid_cable.rb:108:in `with_polling_volume'
    lib/action_cable/subscription_adapter/solid_cable.rb:54:in `listen'
    lib/action_cable/subscription_adapter/solid_cable.rb:48:in `block in initialize'