Skip to content

Why is default_session removed from the releases? #5507

Discussion options

You must be logged in to vote

Looking through that commit I was able to swap default_session our with default_client. Then update the parameters called to default_client.with to a nested hash structure.

Mongoid.default_session.with(read: :primary)

# to

Mongoid.default_client.with({ read: { mode: :primary } })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TravisSpangle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant