Skip to content

Commit

Permalink
Revert "Update deprecation_warning_subscriber.rb"
Browse files Browse the repository at this point in the history
This reverts commit 50bf09f.
  • Loading branch information
jcroteau committed Aug 14, 2023
1 parent 50bf09f commit a645a40
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions config/initializers/deprecation_warning_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,4 @@ def emit_warning_to_slack_alerts_channel(event)
.new(url: ENV["SLACK_DISPATCH_ALERT_URL"])
.send_notification(event.payload[:message], slack_alert_title, SLACK_ALERT_CHANNEL)
end

def raise_if_fixed_deprecation_triggered(event)
# Checking for deprecated message in development and test environments
if Rails.env.development? || Rails.env.test?
if event.payload[:message].include?("The success? predicate is deprecated")
message = "Fixed deprecation warning triggered: #{event.payload[:message]}"
raise DeprecationWarning, message
end
end
end
end

0 comments on commit a645a40

Please sign in to comment.