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

issue with where selector

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • origin-2.2.2
    • Affects Version/s: origin-2.2.1
    • Component/s: None
    • Labels:
      None

      We had this code:
      User.where(:token.ne => '').where(:token.ne => nil)

      it was working fine with 2.2.0, but once we upgraded to 2.2.1 which was released yesterday, this code fails with:
      NoMethodError: undefined method `|' for "":String

      Is this a bug? or incorrect code usage? or?

            Assignee:
            Unassigned Unassigned
            Reporter:
            Artsiom Artsiom Musin [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: