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

activemodel: Add ActiveModel::Errors#add to 7.1 #766

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

tk0miya
Copy link
Contributor

@tk0miya tk0miya commented Jan 10, 2025

In #717, the signature of ActiveModel::Errors#add was moved to activemodel-x.y.rbs from activemodel-generated.rbs (shared).

Unfortunately, that change forgot to copy the signature to activemodel/7.1. Therefore, the method is not found if users installs activemodel-7.1 or later.

This copies the signature of Errors#add from 7.0.

In ruby#717, the signature of
`ActiveModel::Errors#add` was moved to activemodel-x.y.rbs from
activemodel-generated.rbs (shared).

Unfortunately, that change forgot to copy the signature to
activemodel/7.1.  Therefore, the method is not found if users installs
activemodel-7.1 or later.

This copies the signature of `Errors#add` from 7.0.
Copy link

@tk0miya Thanks for your contribution!

Please follow the instructions below for each change.
See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.

  • /merge: Merge this PR if CI passes

activemodel

You changed RBS files for an existing gem.
You can merge this PR yourself because you are a reviewer of this gem.
Just comment /merge to merge this PR.

You can also request a review from other reviewers if you want.

Copy link
Collaborator

@ksss ksss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

APPROVE

Copy link

Thanks for your review, @ksss!

@tk0miya, @ksss This PR is ready to be merged.
Just comment /merge to merge this PR.

@tk0miya
Copy link
Contributor Author

tk0miya commented Jan 21, 2025

/merge

@github-actions github-actions bot merged commit 18ebd76 into ruby:main Jan 21, 2025
7 checks passed
@tk0miya tk0miya deleted the activemodel/errors.add branch January 21, 2025 05:46
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