MongoID read_secondary deprecated

OK. If you are using Rails + MongoID and you get this error message here:

read_secondary options has now been deprecated and will be removed in driver v2.0. Use the :read option instead.

Than you just have to change your configuration. Just replace “read_secondary” with “read”.

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

2 thoughts on “MongoID read_secondary deprecated

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: