aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-08-20 01:07:05 +0930
committerMatthew Draper <matthew@trebex.net>2017-08-20 01:07:05 +0930
commit1da7fa87288efdc89aa01d7ef71998e770b81671 (patch)
treec69718bf7a5f5134505dfafbfc112c7c59e6c968 /actioncable
parent0e7a5661dc6153a3726759588cd99cdf5e002c75 (diff)
downloadrails-1da7fa87288efdc89aa01d7ef71998e770b81671.tar.gz
rails-1da7fa87288efdc89aa01d7ef71998e770b81671.tar.bz2
rails-1da7fa87288efdc89aa01d7ef71998e770b81671.zip
Attributes are protected, not private, to avoid the warning
Diffstat (limited to 'actioncable')
-rw-r--r--actioncable/lib/action_cable/remote_connections.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actioncable/lib/action_cable/remote_connections.rb b/actioncable/lib/action_cable/remote_connections.rb
index a92b5e90b4..a07a517092 100644
--- a/actioncable/lib/action_cable/remote_connections.rb
+++ b/actioncable/lib/action_cable/remote_connections.rb
@@ -51,9 +51,10 @@ module ActionCable
server.connection_identifiers
end
- private
+ protected
attr_reader :server
+ private
def set_identifier_instance_vars(ids)
raise InvalidIdentifiersError unless valid_identifiers?(ids)
ids.each { |k, v| instance_variable_set("@#{k}", v) }