lib/exception_notifier/modules/formatter.rb in exception_notification-4.4.0 vs lib/exception_notifier/modules/formatter.rb in exception_notification-4.4.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'active_support/core_ext/time' require 'action_dispatch' module ExceptionNotifier class Formatter @@ -106,9 +108,10 @@ attr_reader :exception, :env, :errors_count def rails_app_name return unless defined?(::Rails) && ::Rails.respond_to?(:application) + Rails.application.class.parent_name.underscore end def controller env['action_controller.instance'] if env