Use lazy-load hook:
Use lazy-load hook:

- When requiring `active_record/session_store/session`, it will load the `ActiveRecord::Base` [class](https://github.com/rails/activerecord-session_store/blob/a170dd4016208b9ce45cb77f2d946d2d7ef8064e/lib/active_record/session_store/session.rb#L7) which triggers all lazy load hooks at the wrong time

rails/activerecord-session_store