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

Replace errors[:base] << with errors.add(:base, ..) #2597

Merged
merged 1 commit into from Jan 7, 2021

Conversation

sonalkr132
Copy link
Member

Fixes deprecation on rails 6.1

Calling `<<` to an ActiveModel::Errors message array in order to add an
error is deprecated. Please call `ActiveModel::Errors#add` instead.

Related: #2584

Fixes deprecation on rails 6.1
```
Calling `<<` to an ActiveModel::Errors message array in order to add an
error is deprecated. Please call `ActiveModel::Errors#add` instead.
```
@sonalkr132 sonalkr132 merged commit 27ba20c into rubygems:master Jan 7, 2021
@sonalkr132 sonalkr132 temporarily deployed to staging January 20, 2021 14:28 Inactive
@sonalkr132 sonalkr132 temporarily deployed to production January 20, 2021 15:48 Inactive
@sonalkr132 sonalkr132 deleted the errors-add branch January 25, 2021 06:10
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.

None yet

1 participant