You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MONGOID-5472 Save models using the overridden storage options used for their loading (#5750)
* documents remember the active persistence context when they are instantiated
* add Mongoid.legacy_persistence_context_behavior feature flag
* update the docs to include the new feature flag
* update the release notes
* persist the storage options, not the persistence context
otherwise, we may leak client instances
* update docs too
* fix comparison with persistence context
* remembered_storage_options can be nil
* force correct storage options if reusing a persistence context for a child document
* infer correct persistence context for child record
* check argument types correctly
* add tests to ensure an explicit context overrides a remembered one
* remove artifact from previous implementation
0 commit comments