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

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

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

              Created:
              Updated:
              Resolved: