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

Add missing #update and #update! persistance methods #27

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

dsantosmerino
Copy link
Contributor

When trying to fix some deprecation warning in Rpush - rpush/rpush#541, we realized that we are not following the same API than ActiveRecord.

At the moment we are just supporting #update_attributes and #update_attributes! to update records. Those methods have been aliased in ActiveRecord for years, and finally will be removed in the next version - Rails 6.1.

To don't break the current API, we are aliasing the deprecated methods with the new naming, and adding a warning that explains the replacement.

At the moment we are just supporting `#update_attributes` and `#update_attributes!` to update records. Those methods have been aliased in ActiveRecord for years, and finally will be removed in the next version - Rails 6.1.
Copy link
Collaborator

@garettarrowood garettarrowood left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thank you for the contribution.

@aried3r
Copy link
Member

aried3r commented Dec 12, 2019

The CI failures were caused by this, which is now fixed. ruby/json#392 (comment)

I restarted the failing jobs and now everything seems to be in order. Thanks for the contribution!

@aried3r aried3r merged commit af72f8a into rpush:master Dec 12, 2019
@aried3r
Copy link
Member

aried3r commented Dec 12, 2019

Released as 3.2.0.

@aried3r aried3r mentioned this pull request Jul 6, 2020
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.

3 participants