aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/action_cable/server
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-02-05 22:56:52 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2016-02-14 17:46:48 +0100
commit861ece99bb6d7ebdb27fad7db5ccc05340aaf0e5 (patch)
treeedfbd5ef05e31e58d986c9e000d122454e9934e5 /actioncable/lib/action_cable/server
parent661298176c72eefc6d0f42b58210119e76962364 (diff)
downloadrails-861ece99bb6d7ebdb27fad7db5ccc05340aaf0e5.tar.gz
rails-861ece99bb6d7ebdb27fad7db5ccc05340aaf0e5.tar.bz2
rails-861ece99bb6d7ebdb27fad7db5ccc05340aaf0e5.zip
Default connection class to ActionCable::Connection::Base.
Instead of depending on ApplicationCable::Connection being defined at initialize we should inject it in the Railtie. Thus we can kill more setup in the tests too.
Diffstat (limited to 'actioncable/lib/action_cable/server')
-rw-r--r--actioncable/lib/action_cable/server/configuration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/lib/action_cable/server/configuration.rb b/actioncable/lib/action_cable/server/configuration.rb
index 019a374734..58bb8ff65a 100644
--- a/actioncable/lib/action_cable/server/configuration.rb
+++ b/actioncable/lib/action_cable/server/configuration.rb
@@ -13,8 +13,8 @@ module ActionCable
def initialize
@log_tags = []
- @connection_class = ApplicationCable::Connection
- @worker_pool_size = 100
+ @connection_class = ActionCable::Connection::Base
+ @worker_pool_size = 100
@disable_request_forgery_protection = false
end