Permalink
Browse files

Try to play nice with plugins doing monkey patches.

  • Loading branch information...
1 parent 6bff643 commit 76a3ec7f6e348681e4bafa8b02ca660ab450b0ee @josevalim josevalim committed Dec 2, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 actionpack/lib/action_dispatch/middleware/show_exceptions.rb
@@ -45,6 +45,11 @@ def call(env)
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

0 comments on commit 76a3ec7

Please sign in to comment.