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

Mongoid wraps arrays with another array

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

      This commit adds a spec which is trying to retrieve a record with the exact same array of ids (i.e: not $in).
      The problem seems to be related to the has_many_belongs_to relationship.
      Notice how the 'agent_ids' variable is changed and wrapper in another array after the call to where(...)

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

              Created:
              Updated:
              Resolved: