From cc5ad6a65729a7c2c922e230c68b137762b8b127 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 21 Jun 2015 20:55:16 +0200 Subject: Order of appearance --- lib/action_cable/connection/base.rb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 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 4a67167bac..4b73a90dc1 100644 --- a/lib/action_cable/connection/base.rb +++ b/lib/action_cable/connection/base.rb @@ -84,13 +84,6 @@ module ActionCable @websocket.send data end - def statistics - { - identifier: connection_identifier, - started_at: @started_at, - subscriptions: @subscriptions.keys - } - end def handle_exception close_connection @@ -101,6 +94,16 @@ module ActionCable @websocket.close end + + def statistics + { + identifier: connection_identifier, + started_at: @started_at, + subscriptions: @subscriptions.keys + } + end + + protected def request @request ||= ActionDispatch::Request.new(Rails.application.env_config.merge(env)) -- cgit v1.2.3