aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-05-10 04:13:49 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-10-09 23:56:14 -0300
commit6c24e47edaac6e502a3800f41890c3a787b7ad3a (patch)
tree76d52ae87c8c606fefa35e2be75dbf830722f269 /actionpack/lib/action_controller/metal
parentd7be30e8babf5e37a891522869e7b0191b79b757 (diff)
downloadrails-6c24e47edaac6e502a3800f41890c3a787b7ad3a.tar.gz
rails-6c24e47edaac6e502a3800f41890c3a787b7ad3a.tar.bz2
rails-6c24e47edaac6e502a3800f41890c3a787b7ad3a.zip
Remove deprecation at ActionController::BadRequest
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r--actionpack/lib/action_controller/metal/exceptions.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/actionpack/lib/action_controller/metal/exceptions.rb b/actionpack/lib/action_controller/metal/exceptions.rb
index 56a4b085e2..3761e6172b 100644
--- a/actionpack/lib/action_controller/metal/exceptions.rb
+++ b/actionpack/lib/action_controller/metal/exceptions.rb
@@ -3,20 +3,10 @@ module ActionController
end
class BadRequest < ActionControllerError #:nodoc:
- def initialize(msg = nil, e = nil)
- if e
- ActiveSupport::Deprecation.warn("Passing #original_exception is deprecated and has no effect. " \
- "Exceptions will automatically capture the original exception.", caller)
- end
-
+ def initialize(msg = nil)
super(msg)
set_backtrace $!.backtrace if $!
end
-
- def original_exception
- ActiveSupport::Deprecation.warn("#original_exception is deprecated. Use #cause instead.", caller)
- cause
- end
end
class RenderError < ActionControllerError #:nodoc: