diff --git a/CHANGELOG.md b/CHANGELOG.md index 7618e80..9e512dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## master +- Mount HTTP RPC independently of the current Action Cable adapter. ([@palkan][]) + + This makes it possible to use it in tests without manually adding the middleware. + ## 1.5.0 (2024-04-01) - Allow specifying the _whispering_ stream via `#stream_from(..., whisper: true)`. ([@palkan][]) diff --git a/lib/anycable/rails/railtie.rb b/lib/anycable/rails/railtie.rb index 66cf692..32d2d4d 100644 --- a/lib/anycable/rails/railtie.rb +++ b/lib/anycable/rails/railtie.rb @@ -117,8 +117,6 @@ class Railtie < ::Rails::Railtie # :nodoc: end initializer "anycable.routes" do - next unless AnyCable::Rails.enabled? - config.after_initialize do |app| config = AnyCable.config unless config.http_rpc_mount_path.nil?