Skip to content

Commit

Permalink
fix: mount HTTP RPC independently of the adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Apr 4, 2024
1 parent 0eaa927 commit ad7690a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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][])
Expand Down
2 changes: 0 additions & 2 deletions lib/anycable/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit ad7690a

Please sign in to comment.