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

Do not instantiate ActiveRecord model early #1708

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tachyons
Copy link

Summary

Do not instantiate active record models before loading active record, as it can cause several side effects.

Fixes #1703

Do not instantiate active record models before loading active record, as
it can cause several side effects.

Fixes doorkeeper-gem#1703
@nbulaj
Copy link
Member

nbulaj commented May 15, 2024

I remember we already had such hook and it also lead to a lot of issues, unfortunately. I believe we can find them in the issues section

Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

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

Well, let's try to use AS hooks once again 🤞

@nbulaj
Copy link
Member

nbulaj commented Jun 2, 2024

Can you please add a changelog entry?

@tachyons
Copy link
Author

tachyons commented Jun 3, 2024 via email

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.

Doorkeeper is loading ActiveRecord too early
3 participants