aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-02 09:57:43 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-02 09:57:43 +0100
commit76a3ec7f6e348681e4bafa8b02ca660ab450b0ee (patch)
tree9f942c08e498adeec5971a5339aa79f5b2735fb0
parent6bff6439b1960891669485dc978af68dab15af27 (diff)
downloadrails-76a3ec7f6e348681e4bafa8b02ca660ab450b0ee.tar.gz
rails-76a3ec7f6e348681e4bafa8b02ca660ab450b0ee.tar.bz2
rails-76a3ec7f6e348681e4bafa8b02ca660ab450b0ee.zip
Try to play nice with plugins doing monkey patches.
-rw-r--r--actionpack/lib/action_dispatch/middleware/show_exceptions.rb5
1 files changed, 5 insertions, 0 deletions
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