Permalink
Browse files

"warning: `*' interpreted as argument prefix"

  • Loading branch information...
1 parent 3efe204 commit 6d92dcc7bd25f1533d3fc282dd4909ac8ed1a2dc @amatsuda amatsuda committed Aug 18, 2014
@@ -16,7 +16,7 @@ def enqueue_at(job, timestamp, *args)
class JobWrapper
class << self
def perform(job_name, *args)
- job_name.constantize.new.execute *args
+ job_name.constantize.new.execute(*args)
end
end
end
@@ -15,7 +15,7 @@ def enqueue_at(job, timestamp, *args)
class JobWrapper
def perform(job, *args)
- job.new.execute *args
+ job.new.execute(*args)
end
end
end
@@ -3,7 +3,7 @@ module QueueAdapters
class InlineAdapter
class << self
def enqueue(job, *args)
- job.new.execute *args
+ job.new.execute(*args)
end
def enqueue_at(*)
@@ -22,7 +22,7 @@ def initialize(job_name, *args)
end
def perform
- @job.new.execute *@args
+ @job.new.execute(*@args)
end
end
end
@@ -15,7 +15,7 @@ def enqueue_at(job, timestamp, *args)
class JobWrapper < Que::Job
def run(job_name, *args)
- job_name.constantize.new.execute *args
+ job_name.constantize.new.execute(*args)
end
end
end
@@ -15,7 +15,7 @@ def enqueue_at(job, timestamp, *args)
class JobWrapper
def self.perform(job_name, *args)
- job_name.constantize.new.execute *args
+ job_name.constantize.new.execute(*args)
end
end
end
@@ -32,7 +32,7 @@ def enqueue_at(job, timestamp, *args)
class JobWrapper
class << self
def perform(job_name, *args)
- job_name.constantize.new.execute *args
+ job_name.constantize.new.execute(*args)
end
end
end
@@ -27,7 +27,7 @@ class JobWrapper
include Sidekiq::Worker
def perform(job_name, *args)
- job_name.constantize.new.execute *args
+ job_name.constantize.new.execute(*args)
end
end
end
@@ -25,7 +25,7 @@ class JobWrapper
def work(msg)
job_name, *args = ActiveSupport::JSON.decode(msg)
- job_name.constantize.new.execute *args
+ job_name.constantize.new.execute(*args)
ack!
end
end
@@ -17,7 +17,7 @@ class JobWrapper
include SuckerPunch::Job
def perform(job, *args)
- job.new.execute *args
+ job.new.execute(*args)
end
end
end

0 comments on commit 6d92dcc

Please sign in to comment.