aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/connection/identification.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2015-10-16 00:32:46 -0700
committerJeremy Daer <jeremydaer@gmail.com>2015-10-16 00:32:46 -0700
commit4d6f1b0cbe814e3b62a991450ade6e9c79c966bf (patch)
tree801a3c5643020c917b0202978938e8f8ff939d3a /lib/action_cable/connection/identification.rb
parente456d734f70de3dfb245c2d2e3ce9c7e22ebdb71 (diff)
downloadrails-4d6f1b0cbe814e3b62a991450ade6e9c79c966bf.tar.gz
rails-4d6f1b0cbe814e3b62a991450ade6e9c79c966bf.tar.bz2
rails-4d6f1b0cbe814e3b62a991450ade6e9c79c966bf.zip
Shush some low-hanging Ruby warnings
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