module ExceptionNotification::ConsiderLocal

This didn't belong on ExceptionNotification::Notifier and made backtraces worse. To keep original functionality in place 'ActionController::Base.send :include, ExceptionNotification::ConsiderLocal' or just include in your controller

Private Instance Methods

local_request?() click to toggle source
# File lib/exception_notification/consider_local.rb, line 28
def local_request?
  remote = IPAddr.new(request.remote_ip)
  !self.class.local_addresses.detect { |addr| addr.include?(remote) }.nil?
end