aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/server/configuration.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-06-02 04:08:48 +0930
committerMatthew Draper <matthew@trebex.net>2016-06-02 04:08:48 +0930
commita8df1bc345bf062e98bda64ef9638f65292c4b56 (patch)
tree84ee84e5f1bbfafa07b4598d6fa5f122b91e6fd4 /actioncable/lib/action_cable/server/configuration.rb
parent7b75ca100de247a40c78da89e28f4d71e0635b95 (diff)
downloadrails-a8df1bc345bf062e98bda64ef9638f65292c4b56.tar.gz
rails-a8df1bc345bf062e98bda64ef9638f65292c4b56.tar.bz2
rails-a8df1bc345bf062e98bda64ef9638f65292c4b56.zip
Properly support reloading for Action Cable channels
Diffstat (limited to 'actioncable/lib/action_cable/server/configuration.rb')
-rw-r--r--actioncable/lib/action_cable/server/configuration.rb10
1 files changed, 1 insertions, 9 deletions
diff --git a/actioncable/lib/action_cable/server/configuration.rb b/actioncable/lib/action_cable/server/configuration.rb
index 0bb378cf03..ada1ac22cc 100644
--- a/actioncable/lib/action_cable/server/configuration.rb
+++ b/actioncable/lib/action_cable/server/configuration.rb
@@ -8,23 +8,15 @@ module ActionCable
attr_accessor :disable_request_forgery_protection, :allowed_request_origins
attr_accessor :cable, :url, :mount_path
- attr_accessor :channel_paths # :nodoc:
-
def initialize
@log_tags = []
- @connection_class = ActionCable::Connection::Base
+ @connection_class = -> { ActionCable::Connection::Base }
@worker_pool_size = 4
@disable_request_forgery_protection = false
end
- def channel_class_names
- @channel_class_names ||= channel_paths.collect do |channel_path|
- Pathname.new(channel_path).basename.to_s.split('.').first.camelize
- end
- end
-
# Returns constant of subscription adapter specified in config/cable.yml.
# If the adapter cannot be found, this will default to the Redis adapter.
# Also makes sure proper dependencies are required.