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

XMLWordPrintableJSON

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

                Created:
                Updated:
                Resolved: