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

Mongoid::Criteria does not merge with a hash

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

      This is the comment from above the merge method.

      Merges another object with this Criteria and returns a new criteria.
      The other object may be a Criteria or a Hash. This is used to
      combine multiple scopes together, where a chained scope situation
      may be desired.

      But merge calls merge! with the same parameter and merge! calls to_criteria on other(the hash), which it doesn't respond to.

            Assignee:
            durran Durran Jordan
            Reporter:
            lindblom Christopher Lindblom
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: