Skip to content

Commit

Permalink
use alias not alias method, bad rubocop the other errors due to load …
Browse files Browse the repository at this point in the history
…order stuff
  • Loading branch information
danmayer committed Jul 11, 2020
1 parent 23e28aa commit 8d2e024
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Naming/RescuedExceptionsVariableName:
Enabled: false
Naming/PredicateName:
Enabled: true
Style/Alias:
Enabled: false
Style/TernaryParentheses:
Enabled: false
Style/MutableConstant:
Expand Down
4 changes: 2 additions & 2 deletions lib/coverband/integrations/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8d2e024

Please sign in to comment.