Method: ActionDispatch::ActionableExceptions#call
- Defined in:
- actionpack/lib/action_dispatch/middleware/actionable_exceptions.rb
#call(env) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'actionpack/lib/action_dispatch/middleware/actionable_exceptions.rb', line 16 def call(env) request = ActionDispatch::Request.new(env) return @app.call(env) unless actionable_request?(request) ActiveSupport::ActionableError.dispatch(request.params[:error].to_s.safe_constantize, request.params[:action]) redirect_to request.params[:location] end |