method

call

rails latest stable - Class: ActionController::Failsafe

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

call(env)
public

No documentation available.

# File actionpack/lib/action_controller/failsafe.rb, line 25
    def call(env)
      @app.call(env)
    rescue Exception => exception
      # Reraise exception in test environment
      if defined?(Rails) && Rails.env.test?
        raise exception
      else
        failsafe_response(exception)
      end
    end