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

criterion complex operator $size conflict with symbol's size method.

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

      To build Criterion::Complex instance. Mongoid add some help method to Symbol. include 'size'.
      But 'size' is buildin method. It not work and not a good idea.

      I think we must change to another way. We cannot use 'length' because it's same as 'size'.
      But like uglily '_size'? Or 'count'(which Symbol not used)?
      '$size' operator use for calc array's count. So it's the best one IMO.

            Assignee:
            Unassigned Unassigned
            Reporter:
            cncolder Colder Xihk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: