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:
parent
726b71cbb2
commit
102ee40557
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue