Skip to content

Commit

Permalink
suggest Rails.env.local? in ignore_if block
Browse files Browse the repository at this point in the history
Rails.env.local? is available since 7.1, rails/rails#46786
  • Loading branch information
glaszig committed Mar 12, 2024
1 parent 2d87c69 commit 2719206
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -21,7 +21,7 @@ ExceptionNotification.configure do |config|
# Adds a condition to decide when an exception must be ignored or not.
# The ignore_if method can be invoked multiple times to add extra conditions.
# config.ignore_if do |exception, options|
# not Rails.env.production?
# Rails.env.local?
# end

# Ignore exceptions generated by crawlers
Expand Down

0 comments on commit 2719206

Please sign in to comment.