devise-two-factor icon indicating copy to clipboard operation
devise-two-factor copied to clipboard

Rails 7 upgrade clarification

Open richardonrails opened this issue 3 years ago • 1 comments

I'm currently on Rails 6.1 and devise-two-factor 4.0.2

I see what looks like a bit of contradiction in your docs:

https://github.com/tinfoil/devise-two-factor/blob/main/CHANGELOG.md#402 says that 4.0.2 "Adds Rails 7.0 support"

But then https://github.com/tinfoil/devise-two-factor/blob/main/UPGRADING.md#upgrading-from-4x-to-5x says "This gem must be upgraded as part of a Rails 7 upgrade"

So which is it -- can I upgrade to Rails 7 while staying on 4.0.2 at first? Or do I need to upgrade both at the same time?

richardonrails avatar Sep 23 '22 21:09 richardonrails

you can upgrade to rails 7 without upgrading this gem to 5.x, just use this attr_encrypted's fork https://github.com/PagerTree/attr_encrypted/commits/rails-7-0-support

adamzapasnik avatar Sep 29 '22 11:09 adamzapasnik