module HoptoadNotifier::Rails::ActionControllerCatcher

Private Instance Methods

rescue_action_in_public_with_hoptoad(exception) click to toggle source

Overrides the rescue_action method in ActionController::Base, but does not inhibit any custom processing that is defined with Rails 2's exception helpers.

# File lib/hoptoad_notifier/rails/action_controller_catcher.rb, line 15
def rescue_action_in_public_with_hoptoad(exception)
  unless hoptoad_ignore_user_agent?
    error_id = HoptoadNotifier.notify_or_ignore(exception, hoptoad_request_data)
    request.env['hoptoad.error_id'] = error_id
  end
  rescue_action_in_public_without_hoptoad(exception)
end