1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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 class JobWrapper
def perform(job, *args) def perform(job, *args)
job.perform(*ActiveJob::Parameters.deserialize(args)) job.perform *Parameters.deserialize(args)
end end
end end
end end

View file

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

View file

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

View file

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

View file

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