Open
Description
In Rails 6.0, we were able to connect the ActiveRecord Session Store to the database that holds our sessions, like this:
ActiveRecord::SessionStore::Session.connects_to database: { reading: "session_database_#{Rails.env}".to_sym, writing: "session_database_#{Rails.env}".to_sym }
However, in Rails 6.1.0.rc1, this gives an error:
NotImplementedError: `connects_to` can only be called on ActiveRecord::Base or abstract classes
As we cannot change the base class of ActiveRecord::SessionStore::Session
, will there be (or is there) some other way to tell Rails that the session should always be fetched from a specific database?
Metadata
Metadata
Assignees
Labels
No labels