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

Update two_factor_authenticatable.rb #188

Closed
wants to merge 1 commit into from
Closed

Update two_factor_authenticatable.rb #188

wants to merge 1 commit into from

Conversation

anasteele206
Copy link

update_attributes is deprecated and will be removed from Rails 6.1 (please, use update instead)

update_attributes is deprecated and will be removed from Rails 6.1 (please, use update instead)
@menisy
Copy link

menisy commented Apr 15, 2020

@Houdini Can we please merge this soon?

@flanger001
Copy link

Bumping for visibility

@mitchellhenke
Copy link

Is there an opportunity to merge this in the near future? 🙂

@Houdini
Copy link
Owner

Houdini commented Nov 26, 2020

Hello, thanks for your commit.
update_attributes was used as it doesn't trigger callbacks. As far as I know update will trigger them.
Why do you think trigger them is a good idea? This change may break logic

@mitchellhenke
Copy link

Thanks for considering it!

It’s aliased to update so behavior shouldn’t change, and it’s deprecated as of 6.0: https://github.com/rails/rails/blob/v5.2.4.4/activerecord/lib/active_record/persistence.rb#L432

@Houdini
Copy link
Owner

Houdini commented Nov 29, 2020

Thanks for link. That make sense. Please let me check it more

@flanger001
Copy link

flanger001 commented Dec 7, 2020

@Houdini any chance you can fast track this? This PR has been open for 8 months. @mitchellhenke gave all the information necessary and this is really a small change that won't break anything. Either that or allow other maintainers per #193?

@josef-krabath
Copy link

@Houdini can you merge this PR please?
As @mitchellhenke pointed out, update_attributes is an alias method of update.

Rails 6.0.x shows the following deprecation waringing:

DEPRECATION WARNING: update_attributes is deprecated and will be removed from Rails 6.1 (please, use update instead)

Rails 6.1 finally removed the method. As long as this PR is not merged, this gem is no longer usable in new Rails projects.

@kengreeff
Copy link

Bump

@anasteele206 anasteele206 closed this by deleting the head repository Nov 14, 2023
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.

7 participants