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

Feature: login #2

Merged
merged 7 commits into from Dec 18, 2021
Merged

Feature: login #2

merged 7 commits into from Dec 18, 2021

Conversation

fnando
Copy link
Owner

@fnando fnando commented Dec 11, 2021

No description provided.

@fnando fnando merged commit 35a3060 into main Dec 18, 2021
@fnando fnando deleted the feature-login branch December 18, 2021 22:20
def self.create!(email)
auth_code = AuthCode.create!

url = Rails.application.routes.url_helpers.verify_email_url(

Choose a reason for hiding this comment

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

This is very expensive since every call it will create all the routes helpers again. You could cache in a constant, or I think use AppplicationController.helpers

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good call. On the next part we can benchmark this and see what's the best solution.

#3

fnando added a commit that referenced this pull request Dec 19, 2021
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.

None yet

2 participants