lib/flail/rails/rescue_action.rb in flail-0.0.3 vs lib/flail/rails/rescue_action.rb in flail-0.0.4

- old
+ new

@@ -12,10 +12,11 @@ # Overrides the rescue_action method in ActionController::Base # but uses any custom processing that is defined with # Rails 2's exception helpers. def rescue_action_in_public_with_flail(exception) request.env['flail.request'] = request - request.env['action_controller.instance'] = self + request.env['flail.request.data'] = flail_request_data + Flail::Exception.new(request.env, exception).handle! rescue_action_in_public_without_flail(exception) end end end