Regex queries should be possible against field type Symbol

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This works in Ruby:

      :foobar.match?(/foo/)  #=> true
      

      So this should work in Mongoid

      class Pet
        field :animal, type: Symbol
      end
      
      Pet.where(animal: /fish/)
      

              Assignee:
              Neil Shweky (Inactive)
              Reporter:
              Johnny Shields
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: