blob: 7894deaeef2364a846eef8e7439b11a4b2988059 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module ActionController #:nodoc:
module RescueWithHelper
def rescue_with_handler(exception)
if ((exception.class == ActionView::TemplateError) &&
(orig_exception = exception.original_exception) &&
(orig_handler = handler_for_rescue(orig_exception)))
exception = orig_exception
end
super(exception)
end
end
end
|