instance method failsafe_rescue

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

failsafe_rescue(exception)

No documentation comment.

Parameters

exception req
Source
# File actionpack/lib/action_controller/dispatcher.rb, line 187
      def failsafe_rescue(exception)
        self.class.failsafe_response(@output, '500 Internal Server Error', exception) do
          if @controller ||= defined?(::ApplicationController) ? ::ApplicationController : Base
            @controller.process_with_exception(@request, @response, exception).out(@output)
          else
            raise exception
          end
        end
      end

Defined in actionpack/lib/action_controller/dispatcher.rb line 187 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Dispatcher

Type at least 2 characters to search.

↑↓ navigate · open · esc close