OrderedCollection breaks uniq

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor - P4
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Windows, Ruby 1.8.6
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      OrderedCollection needs to implement #hash and #eql?

      If you retrieve the same document twice, add them to an array and send #uniq, you will get both records not just one. I implemented a very bad quick version of #hash and aliased #eql? to #== in OrderedCollection and # uniq returned one record as it should.

            Assignee:
            Kyle Banker (Inactive)
            Reporter:
            Russell Penney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: