Skip to content

Commit

Permalink
Include the connection module after defining the work callback
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Jul 14, 2015
1 parent 2f8a3b5 commit 130b8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/action_cable/server/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module Server
class Worker
include ActiveSupport::Callbacks
include Celluloid
include ClearDatabaseConnections

define_callbacks :work
include ClearDatabaseConnections

def invoke(receiver, method, *args)
run_callbacks :work do
Expand Down

0 comments on commit 130b8f9

Please sign in to comment.