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

Automatically converts 24 digit strings into BSON::ObjectId

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.0.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      I have a part of my code that does:

      Invitation.where(:token => some_24_digit_token).first

      And it fails because it converts the some_24_digit_token into a BSON::ObjectId, instead of leaving it as a string.

            Assignee:
            durran Durran Jordan
            Reporter:
            nicholaides Mike Nicholaides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: