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
end
protected
def job_or_instantiate(*args)
private
def job_or_instantiate(*args) # :doc:
args.first.is_a?(self) ? args.first : new(*args)
end
end