No need to qualify the Parameters class with the namespace

This commit is contained in:
David Heinemeier Hansson 2014-05-19 12:36:01 +02:00
parent 501cc60ff2
commit 37b13cdd1f
5 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ module ActiveJob
class JobWrapper
def perform(job, *args)
job.perform(*ActiveJob::Parameters.deserialize(args))
job.perform *Parameters.deserialize(args)
end
end
end

View File

@ -3,7 +3,7 @@ module ActiveJob
class InlineAdapter
class << self
def queue(job, *args)
job.perform(*ActiveJob::Parameters.deserialize(args))
job.perform *Parameters.deserialize(args)
end
end
end

View File

@ -18,7 +18,7 @@ module ActiveJob
end
def perform(job_name, *args)
job_name.constantize.perform(*ActiveJob::Parameters.deserialize(args))
job_name.constantize.perform *Parameters.deserialize(args)
end
end

View File

@ -13,7 +13,7 @@ module ActiveJob
include Sidekiq::Worker
def perform(job_name, *args)
job_name.constantize.perform(*ActiveJob::Parameters.deserialize(args))
job_name.constantize.perform *Parameters.deserialize(args)
end
end
end

View File

@ -13,7 +13,7 @@ module ActiveJob
include SuckerPunch::Job
def perform(job_name, *args)
job_name.perform(*ActiveJob::Parameters.deserialize(args))
job_name.perform *Parameters.deserialize(args)
end
end
end