mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Try to play nice with plugins doing monkey patches.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user