From 2719206939e7a1693817c39421beb1e812f88ecc Mon Sep 17 00:00:00 2001 From: glaszig Date: Tue, 12 Mar 2024 15:47:11 -0300 Subject: [PATCH] suggest Rails.env.local? in ignore_if block Rails.env.local? is available since 7.1, rails/rails#46786 --- .../templates/exception_notification.rb.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/exception_notification/templates/exception_notification.rb.erb b/lib/generators/exception_notification/templates/exception_notification.rb.erb index 8e8f3f6d..911d3c19 100644 --- a/lib/generators/exception_notification/templates/exception_notification.rb.erb +++ b/lib/generators/exception_notification/templates/exception_notification.rb.erb @@ -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