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:
parent
501cc60ff2
commit
37b13cdd1f
5 changed files with 5 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue