1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #28114 from matthewd/deprecated-evented-redis

Deprecate the EventedRedis subscription adapter
This commit is contained in:
Matthew Draper 2017-02-23 11:37:08 +10:30 committed by GitHub
commit 45468b87f1
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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