lib/flail/rails/rescue_action.rb in flail-0.0.1 vs lib/flail/rails/rescue_action.rb in flail-0.0.2
- old
+ new
@@ -11,9 +11,10 @@
# 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
Flail::Exception.new(request.env, exception).handle!
rescue_action_in_public_without_flail(exception)
end
end
end