aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2015-07-14 11:00:08 -0500
committerPratik Naik <pratiknaik@gmail.com>2015-07-14 11:00:08 -0500
commit130b8f9ddf321d49f43b730b6677bb25e51d4c32 (patch)
tree103e3afe302ea83b6d003036d24a75bae3a846fe /lib
parent2f8a3b58a62acbd218bd670415c96ea9dacee487 (diff)
downloadrails-130b8f9ddf321d49f43b730b6677bb25e51d4c32.tar.gz
rails-130b8f9ddf321d49f43b730b6677bb25e51d4c32.tar.bz2
rails-130b8f9ddf321d49f43b730b6677bb25e51d4c32.zip
Include the connection module after defining the work callback
Diffstat (limited to 'lib')
-rw-r--r--lib/action_cable/server/worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/action_cable/server/worker.rb b/lib/action_cable/server/worker.rb
index 5b03000142..d7823ecf93 100644
--- a/lib/action_cable/server/worker.rb
+++ b/lib/action_cable/server/worker.rb
@@ -4,9 +4,9 @@ module ActionCable
class Worker
include ActiveSupport::Callbacks
include Celluloid
- include ClearDatabaseConnections
define_callbacks :work
+ include ClearDatabaseConnections
def invoke(receiver, method, *args)
run_callbacks :work do