Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-2961

Mongoid.load! not clearing model sessions

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.1.3
    • Affects Version/s: None
    • Component/s: None

      Trying to change the configuration after its already loaded, calling Model.collection still shows the session to have the old configuration.

      I've fixed this by manually calling "Mongoid::Sessions.clear" after Mongoid.load! but maybe this should happen inside load!?

            Assignee:
            durran Durran Jordan
            Reporter:
            brightbits brightbits
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: