From 6c0afaf967b2897a6f998da70814cd694a7fe1f1 Mon Sep 17 00:00:00 2001 From: Jeffrey Hardy Date: Wed, 8 Jul 2015 22:45:58 -0400 Subject: ActionCable.server should always return the same instance --- lib/action_cable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/action_cable.rb b/lib/action_cable.rb index 5f1f3bec35..fac83cb4c3 100644 --- a/lib/action_cable.rb +++ b/lib/action_cable.rb @@ -28,6 +28,6 @@ module ActionCable # Singleton instance of the server module_function def server - ActionCable::Server::Base.new + @server ||= ActionCable::Server::Base.new end end -- cgit v1.2.3