aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-02-23 10:48:30 +1030
committerMatthew Draper <matthew@trebex.net>2017-02-23 10:48:30 +1030
commit3721b859b605233ae577453532e71b0a969e8116 (patch)
tree3ba64cf17f45af24764cda4d609f344aae210b0f /actioncable/lib/action_cable
parent630e709ea6cb535b45a9cbd89c08c572646f5608 (diff)
downloadrails-3721b859b605233ae577453532e71b0a969e8116.tar.gz
rails-3721b859b605233ae577453532e71b0a969e8116.tar.bz2
rails-3721b859b605233ae577453532e71b0a969e8116.zip
Deprecate the EventedRedis subscription adapter
Unlike Faye support, it seems a bit too documented to remove without warning. So, here's a warning.
Diffstat (limited to 'actioncable/lib/action_cable')
-rw-r--r--actioncable/lib/action_cable/subscription_adapter/evented_redis.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb b/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
index 56b068976b..ed8f315791 100644
--- a/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
+++ b/actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
@@ -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