diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-22 19:03:42 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-24 21:16:13 +0900 |
commit | 102ee4055770813c847c95d3d6ff8741c33597d8 (patch) | |
tree | 23dbfea567949d4de2c659d152ae779d6ad4d82a /activejob | |
parent | 726b71cbb28b98aa6b96923029e745bfda7fc387 (diff) | |
download | rails-102ee4055770813c847c95d3d6ff8741c33597d8.tar.gz rails-102ee4055770813c847c95d3d6ff8741c33597d8.tar.bz2 rails-102ee4055770813c847c95d3d6ff8741c33597d8.zip |
Privatize unneededly protected method in Active Job
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/lib/active_job/enqueuing.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activejob/lib/active_job/enqueuing.rb b/activejob/lib/active_job/enqueuing.rb index 78eca1d2a1..c73117e7f3 100644 --- a/activejob/lib/active_job/enqueuing.rb +++ b/activejob/lib/active_job/enqueuing.rb @@ -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 |