Try to play nice with plugins doing monkey patches.

This commit is contained in:
José Valim 2011-12-02 09:57:43 +01:00
parent 6bff6439b1
commit 76a3ec7f6e
1 changed files with 5 additions and 0 deletions

View File

@ -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