Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify use of rescue_from [ci skip] #40984

Merged

Conversation

alecclarke
Copy link
Contributor

Summary

rescue_from works for rescuing exceptions in controller actions, but it's not specific to ActionController.

This change updates the docs to clarify the specifics of how rescue_from is used and that its use goes beyond controller actions.

Other Information

Note: I believe the original addition of this documentation was added as part of the move from ActionController::Rescue to ActiveSupport::Rescuable

`rescue_from` works for rescuing exceptions in controller actions, but it's not specific to ActionController.

This change updates the docs to clarify the specifics of how `rescue_from` is used and that its use goes beyond controller actions.

Note: I believe the original addition of this documentation was added as part of the move from [`ActionController::Rescue` to `ActiveSupport::Rescuable`](rails@259a7a8#diff-2276a3674b84e1262c94cc36346f9fbd8d00e0a4542bb991a8846c06d86335b1R12)
@rafaelfranca rafaelfranca merged commit e19f95f into rails:master Dec 30, 2020
rafaelfranca added a commit that referenced this pull request Dec 30, 2020
…able-docs

Clarify use of rescue_from [ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants