aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/identification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action_cable/connection/identification.rb')
-rw-r--r--lib/action_cable/connection/identification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/identification.rb b/lib/action_cable/connection/identification.rb
index 4e9beac058..95863795dd 100644
--- a/lib/action_cable/connection/identification.rb
+++ b/lib/action_cable/connection/identification.rb
@@ -22,7 +22,7 @@ module ActionCable
# Return a single connection identifier that combines the value of all the registered identifiers into a single gid.
def connection_identifier
- if @connection_identifier.blank?
+ unless defined? @connection_identifier
@connection_identifier = connection_gid identifiers.map { |id| instance_variable_get("@#{id}") }.compact
end