diff options
Diffstat (limited to 'lib/action_cable/connection')
-rw-r--r-- | lib/action_cable/connection/identifier.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/connection/identifier.rb b/lib/action_cable/connection/identifier.rb index 9bfd773ab1..103d326b7f 100644 --- a/lib/action_cable/connection/identifier.rb +++ b/lib/action_cable/connection/identifier.rb @@ -7,7 +7,7 @@ module ActionCable end def connection_identifier - @connection_identifier ||= connection_gid identifiers.map { |id| instance_variable_get("@#{id}")} + @connection_identifier ||= connection_gid identifiers.map { |id| instance_variable_get("@#{id}")}.compact end def connection_gid(ids) |