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

Allow ActiveRecordStore.session_class to be evaluated lazily #208

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

Conversation

gmcgibbon
Copy link
Member

Prevents Active Record from being loaded early in an initializer (where the session_class is being set. This can slow down application boot time.

Prevents Active Record from being loaded early in an initializer (where
the session_class is being set. This can slow down application boot time.
@byroot byroot force-pushed the lazy_load_session_class branch from d2d7c38 to 825f9c3 Compare March 26, 2025 07:50
@byroot
Copy link
Member

byroot commented Mar 26, 2025

Hum, how does this work with reloading? Isn't the solution to set it in to_prepare?

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