chaining where clauses on same attribute overrides previous arguments

XMLWordPrintableJSON

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

      Hi, I'd expect a 1 or 0 from this query:
      User.where(_id: '4dd227e3e8e687ca63000009').and(:_id.in =>
      user.admin_ids).size
      => 3

      Is this by design? Thank you for any hints on this!
      --Frank

            Assignee:
            Unassigned
            Reporter:
            fwoeck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: