Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty lines | Ryuta Kamizono | 2016-08-07 | 1 | -1/+0 |
| | |||||
* | modernizes hash syntax in activesupport | Xavier Noria | 2016-08-06 | 1 | -3/+3 |
| | |||||
* | applies new string literal convention in activesupport/test | Xavier Noria | 2016-08-06 | 1 | -13/+13 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | Action Mailer: Declarative exception handling with `rescue_from`. | Jeremy Daer | 2016-05-15 | 1 | -4/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | Follows the same pattern as controllers and jobs. Exceptions raised in delivery jobs (enqueued by `#deliver_later`) are also delegated to the mailer's rescue_from handlers, so you can handle the DeserializationError raised by delivery jobs: ```ruby class MyMailer < ApplicationMailer rescue_from ActiveJob::DeserializationError do … end ``` ActiveSupport::Rescuable polish: * Add the `rescue_with_handler` class method so exceptions may be handled at the class level without requiring an instance. * Rationalize `exception.cause` handling. If no handler matches the exception, fall back to the handler that matches its cause. * Handle exceptions raised elsewhere. Pass `object: …` to execute the `rescue_from` handler (e.g. a method call or a block to instance_exec) against a different object. Defaults to `self`. | ||||
* | Add class level case operator support for error dispatching in Rescuable | Genadi Samokovarov | 2014-12-10 | 1 | -2/+27 |
| | |||||
* | Pass symbol as an argument instead of a block | Erik Michaels-Ober | 2014-11-29 | 1 | -2/+2 |
| | |||||
* | Fix some typo in method names, variables | Vipul A M | 2013-05-26 | 1 | -1/+1 |
| | |||||
* | Test that rescue_from accepts a class name in String | Akira Matsuda | 2013-01-23 | 1 | -2/+1 |
| | |||||
* | use AS::TestCase as the base class | Aaron Patterson | 2012-01-05 | 1 | -1/+1 |
| | |||||
* | Rescuable spelling error | Christian Höltje | 2011-10-03 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -4/+4 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | strengthening the test suite for rescue_from | Neeraj Singh | 2010-07-26 | 1 | -0/+23 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | strengthening the rescue_from test suites | Neeraj Singh | 2010-07-26 | 1 | -0/+14 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | No need to emulate default Ruby behavior in initialize | Yehuda Katz | 2010-02-10 | 1 | -3/+0 |
| | |||||
* | Don't rely on @message in Error classes being available for use | Yehuda Katz | 2010-02-10 | 1 | -4/+1 |
| | |||||
* | Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ↵ | Pratik Naik | 2008-10-04 | 1 | -0/+75 |
ActionController::Base. |