diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2014-05-22 20:37:06 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2014-05-22 20:37:06 +0200 |
commit | 26dc3ea7b8ac770b8265fa8ce97ed67158cfb68a (patch) | |
tree | f5eb36ae2efbb3a753c4dba5c0592a85e4544efa /lib/active_job/queue_adapters/inline_adapter.rb | |
parent | ef4aff07a41f1249baade695e68c75a8db3ded58 (diff) | |
download | rails-26dc3ea7b8ac770b8265fa8ce97ed67158cfb68a.tar.gz rails-26dc3ea7b8ac770b8265fa8ce97ed67158cfb68a.tar.bz2 rails-26dc3ea7b8ac770b8265fa8ce97ed67158cfb68a.zip |
Rename #perform_with_hooks to #execution
Diffstat (limited to 'lib/active_job/queue_adapters/inline_adapter.rb')
-rw-r--r-- | lib/active_job/queue_adapters/inline_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_job/queue_adapters/inline_adapter.rb b/lib/active_job/queue_adapters/inline_adapter.rb index 8b82d7c25a..d116520285 100644 --- a/lib/active_job/queue_adapters/inline_adapter.rb +++ b/lib/active_job/queue_adapters/inline_adapter.rb @@ -3,7 +3,7 @@ module ActiveJob class InlineAdapter class << self def enqueue(job, *args) - job.new.perform_with_hooks *args + job.new.execute *args end def enqueue_at(job, timestamp, *args) @@ -11,7 +11,7 @@ module ActiveJob begin interval = Time.now.to_f - timestamp sleep(interval) if interval > 0 - job.new.perform_with_hooks *args + job.new.execute *args rescue => e ActiveJob::Base.logger.info "Error performing #{job}: #{e.message}" end |