diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-05-10 04:13:49 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-10-09 23:56:14 -0300 |
commit | 6c24e47edaac6e502a3800f41890c3a787b7ad3a (patch) | |
tree | 76d52ae87c8c606fefa35e2be75dbf830722f269 | |
parent | d7be30e8babf5e37a891522869e7b0191b79b757 (diff) | |
download | rails-6c24e47edaac6e502a3800f41890c3a787b7ad3a.tar.gz rails-6c24e47edaac6e502a3800f41890c3a787b7ad3a.tar.bz2 rails-6c24e47edaac6e502a3800f41890c3a787b7ad3a.zip |
Remove deprecation at ActionController::BadRequest
-rw-r--r-- | actionpack/CHANGELOG.md | 5 | ||||
-rw-r--r-- | actionpack/lib/action_controller/metal/exceptions.rb | 12 |
2 files changed, 6 insertions, 11 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 81ad253f30..aa18e94edc 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,8 @@ +* Remove deprecated support to passing original exception to `ActionController::BadRequest` + and the `ActionController::BadRequest#original_exception` method. + + *Rafael Mendonça França* + * Remove deprecated methods `skip_action_callback`, `skip_filter`, `before_filter`, `prepend_before_filter`, `skip_before_filter`, `append_before_filter`, `around_filter` `prepend_around_filter`, `skip_around_filter`, `append_around_filter`, `after_filter`, 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: |