diff options
author | Jan Habermann <jan.habermann@sinnerschrader.com> | 2015-11-18 12:15:18 +0100 |
---|---|---|
committer | Jan Habermann <jan.habermann@sinnerschrader.com> | 2015-11-18 12:15:18 +0100 |
commit | 952887a8bd1fc1e197a482b01c6b1b1ccbcdba2d (patch) | |
tree | 32ba016b905f91839b1b05bc0c0d6212869d4742 /lib/action_cable | |
parent | a74bcae30a69039baa75205f538b523835929887 (diff) | |
download | rails-952887a8bd1fc1e197a482b01c6b1b1ccbcdba2d.tar.gz rails-952887a8bd1fc1e197a482b01c6b1b1ccbcdba2d.tar.bz2 rails-952887a8bd1fc1e197a482b01c6b1b1ccbcdba2d.zip |
Use to_gid_param for connection identifiers
Diffstat (limited to 'lib/action_cable')
-rw-r--r-- | lib/action_cable/connection/identification.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/action_cable/connection/identification.rb b/lib/action_cable/connection/identification.rb index 76cb7d5ea1..2d75ff8d6d 100644 --- a/lib/action_cable/connection/identification.rb +++ b/lib/action_cable/connection/identification.rb @@ -34,8 +34,8 @@ module ActionCable private def connection_gid(ids) ids.map do |o| - if o.respond_to? :to_global_id - o.to_global_id.to_s + if o.respond_to? :to_gid_param + o.to_gid_param else o.to_s end |