From 76a3ec7f6e348681e4bafa8b02ca660ab450b0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 2 Dec 2011 09:57:43 +0100 Subject: Try to play nice with plugins doing monkey patches. --- actionpack/lib/action_dispatch/middleware/show_exceptions.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb index c801bcf2ef..9efe90a670 100644 --- a/actionpack/lib/action_dispatch/middleware/show_exceptions.rb +++ b/actionpack/lib/action_dispatch/middleware/show_exceptions.rb @@ -45,6 +45,11 @@ module ActionDispatch private + # Define this method because some plugins were monkey patching it. + # Remove this after 3.2 is out with the other deprecations in this class. + def status_code(*) + end + def render_exception_with_failsafe(env, exception) render_exception(env, exception) rescue Exception => failsafe_error -- cgit v1.2.3