提交 102ee405 编写于 作者: A Akira Matsuda

Privatize unneededly protected method in Active Job

上级 726b71cb
...@@ -18,8 +18,8 @@ def perform_later(*args) ...@@ -18,8 +18,8 @@ def perform_later(*args)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册