Permalink
Browse files

remove status_code from AD::ShowExceptions and useless requires

  • Loading branch information...
1 parent 1a358e4 commit 63a58213bcdb51f11d51c55978d2ab4753615b9b @lest lest committed Dec 21, 2011
@@ -1,6 +1,5 @@
require 'action_dispatch/http/request'
require 'action_dispatch/middleware/exception_wrapper'
-require 'active_support/deprecation'
module ActionDispatch
# This middleware rescues any exception returned by the application
@@ -39,11 +38,6 @@ 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(env, exception)
wrapper = ExceptionWrapper.new(env, exception)
status = wrapper.status_code
@@ -4,7 +4,6 @@
require 'active_support/core_ext/array/wrap'
require 'active_support/ordered_options'
require 'action_view/log_subscriber'
-require 'active_support/core_ext/module/deprecation'
module ActionView #:nodoc:
# = Action View Base

0 comments on commit 63a5821

Please sign in to comment.