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

Add missing find_first & one methods to Mongoid::Contextual::None

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 7.1.11, 7.2.6, 7.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible

      As part of review of the proposed PR for https://jira.mongodb.org/browse/MONGOID-4755 I wrote an integration test to verify all contexts behave the same.

      While writing this test I noticed that None context doesn't implement find_first and one, which are trivial to add.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: