From c073ba339a6820625718f7320989cfa527534563 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 22 May 2014 19:33:23 +0200 Subject: Add callbacks, implement instrumentation as callbacks, and have the enqueue methods return a job instance --- lib/active_job/queue_adapters/sneakers_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/active_job/queue_adapters/sneakers_adapter.rb') diff --git a/lib/active_job/queue_adapters/sneakers_adapter.rb b/lib/active_job/queue_adapters/sneakers_adapter.rb index 6bb575e907..ebd794fca1 100644 --- a/lib/active_job/queue_adapters/sneakers_adapter.rb +++ b/lib/active_job/queue_adapters/sneakers_adapter.rb @@ -23,7 +23,7 @@ module ActiveJob include Sneakers::Worker def work(job, *args) - job.new.perform_with_deserialization *args + job.new.perform_with_hooks *args end end end -- cgit v1.2.3