1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Sean Griffin b76b817629 Use the most highest priority exception handler when cause is set
There was some subtle breakage caused by #18774, when we removed
`#original_exception` in favor of `#cause`. However, `#cause` is
automatically set by Ruby when raising an exception from a rescue block.
With this change, we will use whichever handler has the highest priority
(whichever call to `rescue_from` came last). In cases where the outer
has lower precidence than the cause, but the outer is what should be
handled, cause will need to be explicitly unset.

Fixes #23925
2016-03-11 10:53:01 -07:00
..
abstract Revert "ActionController::Base#process() now only takes an action name" 2015-10-29 16:18:27 -07:00
assertions Add both HTTP Response Code and Type to assertion messages 2016-01-12 13:09:00 -07:00
controller Use the most highest priority exception handler when cause is set 2016-03-11 10:53:01 -07:00
dispatch Rename constrain_to to exclude. 2016-03-03 21:09:58 +01:00
fixtures Additional review of 6b31761. 2016-02-25 11:13:42 +01:00
journey Deprecate :controller and :action path parameters 2016-03-01 08:48:53 +00:00
lib/controller Removing unused fake models 2014-09-07 22:51:14 -03:00
routing Remove deprecate *_path helpers in email views 2015-01-04 11:58:42 -03:00
tmp
abstract_unit.rb Merge pull request #23932 from arthurnn/arthurnn/remove_load_paths 2016-03-01 16:10:09 -05:00