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

Privatize unneededly protected method in Active Job

This commit is contained in:
Akira Matsuda 2016-12-22 19:03:42 +09:00
parent 726b71cbb2
commit 102ee40557

View file

@ -18,8 +18,8 @@ module ActiveJob
job_or_instantiate(*args).enqueue job_or_instantiate(*args).enqueue
end end
protected private
def job_or_instantiate(*args) def job_or_instantiate(*args) # :doc:
args.first.is_a?(self) ? args.first : new(*args) args.first.is_a?(self) ? args.first : new(*args)
end end
end end