Sha256: 9e21a5aca89fea5a1be58663d6ebf9691a96e2d28c9215132910910bc5fedc49

Contents?: true

Size: 288 Bytes

Versions: 11

Compression:

Stored size: 288 Bytes

Contents

module ExceptionNotifier
  module BacktraceCleaner

    def clean_backtrace(exception)
      if defined?(Rails) && Rails.respond_to?(:backtrace_cleaner)
        Rails.backtrace_cleaner.send(:filter, exception.backtrace)
      else
        exception.backtrace
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
exception_notification-4.3.0 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.2.2 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.2.1 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.2.0 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.2.0.rc1 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification_more_info-1.0.1 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification_more_info-1.0.0 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.1.4 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.1.3 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.1.2 lib/exception_notifier/modules/backtrace_cleaner.rb
exception_notification-4.1.1 lib/exception_notifier/modules/backtrace_cleaner.rb