aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@basecamp.com>2014-07-29 17:05:07 -0700
committerDavid Heinemeier Hansson <david@basecamp.com>2014-07-29 17:05:07 -0700
commit53b07ea4f5ed7d341c97329bfcf2a6404249c52f (patch)
treed8ff870f6c720bd6cd627741361dc9a9db68a2da
parent63f92c0205ee3abcbc299c000f62d3caffc61323 (diff)
parentd1f9b0857f6afaab1b61b8c687942dd0b0f680ee (diff)
downloadrails-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.rb6
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