From 81ae9ee32162ececbd70664b2821e7c636eaed8b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 21 Jun 2015 21:08:20 +0200 Subject: Consolidate all identification logic in a single concern --- lib/action_cable/connection/base.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'lib/action_cable/connection/base.rb') 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 -- cgit v1.2.3