mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Deprecate the EventedRedis subscription adapter
Unlike Faye support, it seems a bit too documented to remove without warning. So, here's a warning.
This commit is contained in:
parent
630e709ea6
commit
3721b859b6
2 changed files with 9 additions and 1 deletions
|
@ -24,6 +24,12 @@ module ActionCable
|
|||
cattr_accessor(:redis_connector) { ->(config) { ::Redis.new(url: config[:url]) } }
|
||||
|
||||
def initialize(*)
|
||||
ActiveSupport::Deprecation.warn(<<-MSG.squish)
|
||||
The "evented_redis" subscription adapter is deprecated and
|
||||
will be removed in Rails 5.2. Please use the "redis" adapter
|
||||
instead.
|
||||
MSG
|
||||
|
||||
super
|
||||
@redis_connection_for_broadcasts = @redis_connection_for_subscriptions = nil
|
||||
end
|
||||
|
|
|
@ -7,7 +7,9 @@ class EventedRedisAdapterTest < ActionCable::TestCase
|
|||
include ChannelPrefixTest
|
||||
|
||||
def setup
|
||||
super
|
||||
assert_deprecated do
|
||||
super
|
||||
end
|
||||
|
||||
# em-hiredis is warning-rich
|
||||
@previous_verbose, $VERBOSE = $VERBOSE, nil
|
||||
|
|
Loading…
Reference in a new issue