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

Upgrade Rails to 7.0 #138

Merged
merged 4 commits into from
Dec 8, 2023
Merged

Upgrade Rails to 7.0 #138

merged 4 commits into from
Dec 8, 2023

Conversation

santiagorodriguez96
Copy link
Contributor

Summary

Upgraded Rails to 7.0.8. Also had to remove spring as it was causing some errors (and we don't really need it) and access session data using symbols instead of strings as after the upgrade it the latter approach was not working. There are a couple of deprecation warnings that I'll tackle as part of a separate PR.

@santiagorodriguez96 santiagorodriguez96 force-pushed the sr--upgrade-to-rails-70 branch 3 times, most recently from 5a65d1c to 1b7e135 Compare December 8, 2023 19:47
@@ -21,7 +21,7 @@ def create
def callback
webauthn_credential = relying_party.verify_registration(
params,
session["current_registration"]["challenge"],
session[:current_registration][:challenge],
Copy link
Contributor Author

@santiagorodriguez96 santiagorodriguez96 Dec 8, 2023

Choose a reason for hiding this comment

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

@soartec-lab it turns out that it was needed to use symbols to access the session data instead of strings as it was in fact returning nil after upgrading to Rails 7.0 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

@santiagorodriguez96

Thank you for let me know. My doubts were cleared. And I'm glad I was able to contribute👍

santiagorodriguez96 and others added 4 commits December 8, 2023 19:43
The command used to update was:

```
bin/rails update --conservative rails
```
Just copied the changes over from #132.

Co-authored-by: Shodai Suzuki <[email protected]>
@santiagorodriguez96 santiagorodriguez96 merged commit c3a3c41 into master Dec 8, 2023
1 check passed
@santiagorodriguez96 santiagorodriguez96 deleted the sr--upgrade-to-rails-70 branch December 8, 2023 22:52
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.

2 participants