Automatically converts 24 digit strings into BSON::ObjectId

XMLWordPrintableJSON

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

      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 Jordan
              Reporter:
              Mike Nicholaides
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: