Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1075

Lost support for querying

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.1
    • Affects Version/s: 2.2.0
    • Component/s: None
    • Fully Compatible

      Updated mongo gem from 2.1.1 to 2.20.

      I have the following Mongoid document:

      class Person
      include Mongoid::Document

      field :status, type: Symbol
      end

      If i create a new person:

      Person.create status: :deceased

      And try to query it, it returns nil:

      Person.where(status: :deceased).first
      => nil

      This used to work fine on 2.1.1, is this a bug or just a breaking change from 2.2.0?

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            marcelloma Marcello Milhomem Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: