diff options
author | David Heinemeier Hansson <david@basecamp.com> | 2014-07-29 17:05:07 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@basecamp.com> | 2014-07-29 17:05:07 -0700 |
commit | 53b07ea4f5ed7d341c97329bfcf2a6404249c52f (patch) | |
tree | d8ff870f6c720bd6cd627741361dc9a9db68a2da | |
parent | 63f92c0205ee3abcbc299c000f62d3caffc61323 (diff) | |
parent | d1f9b0857f6afaab1b61b8c687942dd0b0f680ee (diff) | |
download | rails-53b07ea4f5ed7d341c97329bfcf2a6404249c52f.tar.gz rails-53b07ea4f5ed7d341c97329bfcf2a6404249c52f.tar.bz2 rails-53b07ea4f5ed7d341c97329bfcf2a6404249c52f.zip |
Merge pull request #101 from DouweM/patch-9
Rename variables for consistency.
-rw-r--r-- | lib/active_job/queue_adapters/que_adapter.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/active_job/queue_adapters/que_adapter.rb b/lib/active_job/queue_adapters/que_adapter.rb index 4af3a0fbcf..15a607bcb6 100644 --- a/lib/active_job/queue_adapters/que_adapter.rb +++ b/lib/active_job/queue_adapters/que_adapter.rb @@ -5,7 +5,7 @@ module ActiveJob class QueAdapter class << self def enqueue(job, *args) - JobWrapper.enqueue job.to_s, *args, queue: job.queue_name + JobWrapper.enqueue job.name, *args, queue: job.queue_name end def enqueue_at(job, timestamp, *args) @@ -14,8 +14,8 @@ module ActiveJob end class JobWrapper < Que::Job - def run(job, *args) - job.constantize.new.execute *args + def run(job_name, *args) + job_name.constantize.new.execute *args end end end |