symmetric-encryption icon indicating copy to clipboard operation
symmetric-encryption copied to clipboard

- Update activerecord to 7.0.4 to support rails 7.0.4

Open Bhalani opened this issue 3 years ago • 1 comments

Issue # (if available)

It's not working for my Rails 7.0.4 application

Description of changes

Update gem activerecord to 7.0.4 And make sure it works with rails latest version.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Bhalani avatar Sep 14 '22 15:09 Bhalani

@reidmorrison Please review it, my project is in Rails 7.0.4 and I'm not able to access attr_encrypted because of current version support is 7.0.0. I don't see any issue down the road by updating Activerecord 7.0.4. Please add some feedback or approve it so other user can also take benefit of this update.

Bhalani avatar Sep 14 '22 17:09 Bhalani

Rails 7 has its own encrypted_attributes method that conflicts with the one used by Symmetric Encryption, as a result this method is no longer supported as of Rails 7. The new approach is documented here: https://encryption.rocketjob.io/frameworks.html

reidmorrison avatar Nov 06 '22 16:11 reidmorrison

This is the pull request that describes the problem: https://github.com/reidmorrison/symmetric-encryption/pull/156

reidmorrison avatar Nov 06 '22 16:11 reidmorrison

attr_encrypted is no longer available when using Rails 7. The newer approach is documented here: https://encryption.rocketjob.io/frameworks.html.

reidmorrison avatar Mar 26 '23 21:03 reidmorrison