1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/lib/action_cable
Daniel Colson d092c133c7
Do not allow subscribing to Base channel
Closes #40482

Prior to this commit it was possible to subscribe with
`ActionCable::Channel::Base` as the subscription class. While it doesn't
seem possible to exploit this in away way, it also doesn't seem like
something we need to allow.

This commit swaps [Module#>=][gte] with [Module#>][gt] to prevent
subscribing to a channel when `ActionCable::Channel::Base` is the
subscription class.

[gte]: https://ruby-doc.org/core-2.5.3/Module.html#method-i-3E-3D
[gt]: https://ruby-doc.org/core-2.5.3/Module.html#method-i-3E
2020-11-24 22:30:03 -05:00
..
channel Address to false negative for Performance/DeletePrefix,DeleteSuffix 2020-06-14 13:04:47 +09:00
connection Do not allow subscribing to Base channel 2020-11-24 22:30:03 -05:00
helpers Convert CoffeeScript to ES6 syntax 2020-04-17 14:41:40 +03:00
server Remove invalid autoloads in top-level Rails modules 2020-06-08 17:21:26 -04:00
subscription_adapter Update pg gem required version to 1.1 2020-04-27 16:27:40 +09:00
channel.rb Add ActionCable::Channel::TestCase 2018-09-26 22:06:14 -07:00
connection.rb feature: add ActionCable::Connection::TestCase 2019-01-02 19:47:38 -05:00
engine.rb Allow missing Action Cable config 2020-11-06 11:45:51 -06:00
gem_version.rb Preparing for 6.1.0.rc1 release 2020-11-02 21:12:47 +00:00
remote_connections.rb
server.rb Remove invalid autoloads in top-level Rails modules 2020-06-08 17:21:26 -04:00
subscription_adapter.rb Add Action Cable test adapter 2018-08-19 19:06:30 -04:00
test_case.rb Add Action Cable test case and test helper 2018-08-19 19:23:33 -04:00
test_helper.rb Implicitly assert no exception is raised in block assertions 2019-10-07 11:01:24 +02:00
version.rb