Use Mongo::Error::SessionsNotSupported for checking session support

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.4, 7.0.10
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Oleg Pudeyev (Inactive)
              Reporter:
              Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: