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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: