aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/base.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2015-06-21 21:08:20 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-06-21 21:08:20 +0200
commit81ae9ee32162ececbd70664b2821e7c636eaed8b (patch)
tree3776838ed43fb8f52b2b7b8443f563f79dad6322 /lib/action_cable/connection/base.rb
parentcc5ad6a65729a7c2c922e230c68b137762b8b127 (diff)
downloadrails-81ae9ee32162ececbd70664b2821e7c636eaed8b.tar.gz
rails-81ae9ee32162ececbd70664b2821e7c636eaed8b.tar.bz2
rails-81ae9ee32162ececbd70664b2821e7c636eaed8b.zip
Consolidate all identification logic in a single concern
Diffstat (limited to 'lib/action_cable/connection/base.rb')
-rw-r--r--lib/action_cable/connection/base.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb
index 4b73a90dc1..0d666713d2 100644
--- a/lib/action_cable/connection/base.rb
+++ b/lib/action_cable/connection/base.rb
@@ -1,17 +1,11 @@
module ActionCable
module Connection
class Base
- include InternalChannel, Identifier
+ include Identification
+ include InternalChannel
PING_INTERVAL = 3
- class_attribute :identifiers
- self.identifiers = Set.new
-
- def self.identified_by(*identifiers)
- self.identifiers += identifiers
- end
-
attr_reader :env, :server, :logger
delegate :worker_pool, :pubsub, to: :server