Skip to content

Commit fdd2a62

Browse files
committed
Silence _perform method redefinition warning
I'd like to get rid of this noisy warning: ```shell sentry-rails-5.26.0/lib/sentry/rails/background_worker.rb:5: warning: method redefined; discarding old _perform sentry-ruby-5.26.0/lib/sentry/background_worker.rb:74: warning: previous definition of _perform was here ``` #skip-changelog # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Sun Aug 24 01:04:29 2025 +0400 # # On branch silence-perform-method-redefinition-warning # Changes to be committed: # modified: lib/sentry/rails/background_worker.rb #
1 parent a3d87a6 commit fdd2a62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sentry-rails/lib/sentry/rails/background_worker.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module Sentry
44
class BackgroundWorker
5+
alias :_perform :_perform # Silence method redefinition warning.
56
def _perform(&block)
67
block.call
78
ensure

0 commit comments

Comments
 (0)