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

Mongoid.load! not clearing model sessions

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: None
    • Labels:

      Description

      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!?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: