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

Move rescue_from type from an interface to ActiveSupport::Rescuable::ClassMethods #462

Merged
merged 2 commits into from
Oct 28, 2023

Conversation

pocke
Copy link
Member

@pocke pocke commented Oct 28, 2023

Close #438

PR #438 ignores the well-typed rescue_from definition, so I replaced the type of ActiveSupport::Rescuable::ClassMethods#rescue_from with the definition defiend in the interface.

tk0miya and others added 2 commits October 28, 2023 14:40
`.rescue_from` method is defined in `ActiveSupport::Rescuable::ClassMethods`. Therefore
it would be better to extend it instead of redefinition.
@pocke pocke merged commit 55d4f26 into ruby:main Oct 28, 2023
3 checks passed
@pocke pocke deleted the rescue_from-type branch October 28, 2023 05:46
sw-square pushed a commit to sw-square/gem_rbs_collection that referenced this pull request Jan 22, 2024
…::ClassMethods (ruby#462)

* actionpack: Do not redefine ActionController::Base.rescue_from

`.rescue_from` method is defined in `ActiveSupport::Rescuable::ClassMethods`. Therefore
it would be better to extend it instead of redefinition.

* Move rescue_from type definition from an interface to a class

---------

Co-authored-by: Takeshi KOMIYA <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants