mongoid/relations/targets/enumerable each method not consistent with ruby Array behaviour.

XMLWordPrintableJSON

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

      When called without a block the "each" method of the Array class returns an enumerator. The "each" method of mongoid/relations/targets/enumerable returns true. This causes issues when the caller expects an enumerator. I discovered this because it is causing issues with the most recent release of the jbuilder gem.

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

              Created:
              Updated:
              Resolved: