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

ActiveJob raises a ActiveJob::SerializationError for BSON::ObjectId parameters

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

      Currently, if you provide a BSON::ObjectId as an argument to an ActiveJob job, Rails will raise a ActiveJob::SerializationError (Unsupported argument type: BSON::ObjectId).

      This PR fixes this, so that BSON::ObjectId is serialized as a string and deserialized back into BSON::ObjectId.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: