diff options
author | Matthew Draper <matthew@trebex.net> | 2016-02-26 16:17:01 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2016-03-02 02:14:54 +1030 |
commit | 5bdeb9bfd72a97ad578efc6cce95283f589f1555 (patch) | |
tree | 79f29ada12d9a03ee965c9b8323ee8d07f8c6005 /activejob/lib/active_job/execution.rb | |
parent | 185c93eb0c8df629033be48e5eef431190c65226 (diff) | |
download | rails-5bdeb9bfd72a97ad578efc6cce95283f589f1555.tar.gz rails-5bdeb9bfd72a97ad578efc6cce95283f589f1555.tar.bz2 rails-5bdeb9bfd72a97ad578efc6cce95283f589f1555.zip |
Use AS::Reloader to support reloading in ActiveJob
Diffstat (limited to 'activejob/lib/active_job/execution.rb')
-rw-r--r-- | activejob/lib/active_job/execution.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activejob/lib/active_job/execution.rb b/activejob/lib/active_job/execution.rb index 79d232da4a..7c4151fc90 100644 --- a/activejob/lib/active_job/execution.rb +++ b/activejob/lib/active_job/execution.rb @@ -17,8 +17,10 @@ module ActiveJob end def execute(job_data) #:nodoc: - job = deserialize(job_data) - job.perform_now + ActiveJob::Callbacks.run_callbacks(:execute) do + job = deserialize(job_data) + job.perform_now + end end end |