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

Allow rescue_from handlers to not accept arguments #93

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

rsamoilov
Copy link
Member

@rsamoilov rsamoilov commented Jul 15, 2024

This relaxes the restriction that was there since v0.2.0 and allows rescue_from handlers to not accept any arguments:

rescue_from User::NotAuthorized do
  head :forbidden
end

@rsamoilov rsamoilov force-pushed the rescue-from-arity branch from cbedf89 to aa1571d Compare July 30, 2024 18:31
@rsamoilov rsamoilov merged commit 7447f4f into master Jul 30, 2024
6 checks passed
@rsamoilov rsamoilov deleted the rescue-from-arity branch July 30, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant