diff --git a/.rubocop.yml b/.rubocop.yml index cb0ac2ad..a3bbfaf1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -36,6 +36,8 @@ Naming/RescuedExceptionsVariableName: Enabled: false Naming/PredicateName: Enabled: true +Style/Alias: + Enabled: false Style/TernaryParentheses: Enabled: false Style/MutableConstant: diff --git a/lib/coverband/integrations/resque.rb b/lib/coverband/integrations/resque.rb index bc2b76d0..d124cf79 100644 --- a/lib/coverband/integrations/resque.rb +++ b/lib/coverband/integrations/resque.rb @@ -29,8 +29,8 @@ def perform_with_coverband ensure Coverband.report_coverage end - alias_method perform_without_coverband perform - alias_method perform perform_with_coverband + alias perform_without_coverband perform + alias perform perform_with_coverband end else Resque::Job.prepend(Coverband::ResqueWorker)