Mongoid currently uses an exact exception message match to determine whether a failure to create a session is due to sessions not being supported:
ex.message == Mongo::Session::SESSIONS_NOT_SUPPORTED
Instead the newly added Mongo::Error::SessionsNotSupported class should be checked.
- is caused by
-
RUBY-2305 Provide diagnostics when deployment does not support sessions
- Closed
- links to