From 22b9882ea6ab621ac5deceb700ec503f796812e6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 21 Jun 2015 21:34:04 +0200 Subject: Styling --- lib/action_cable/connection/base.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'lib/action_cable/connection') diff --git a/lib/action_cable/connection/base.rb b/lib/action_cable/connection/base.rb index 0d666713d2..175b596241 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -5,17 +5,20 @@ module ActionCable include InternalChannel PING_INTERVAL = 3 - - attr_reader :env, :server, :logger + + attr_reader :server, :env delegate :worker_pool, :pubsub, to: :server + attr_reader :logger + def initialize(server, env) @started_at = Time.now - @server = server - @env = env - @accept_messages = false + @server, @env = server, env + + @accept_messages = false @pending_messages = [] + @subscriptions = {} @logger = TaggedLoggerProxy.new(server.logger, tags: log_tags) -- cgit v1.2.3