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

Criteria#merge does not necessary merge another object into *this* Criteria

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

      criteria = Document.all.dup
      criteria.merge(Document.where(:ticks => 100))

      Does not really update criteria object when documentation to Criteria#merge says:

      1. Merges another object into this Criteria. The other object may be a

            Assignee:
            Unassigned Unassigned
            Reporter:
            afurmanov Aleksandr Furmanov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: