Mongoid::Criteria does not merge with a hash

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 3.0.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Jordan
              Reporter:
              Christopher Lindblom
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: