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

active model attribute mutation tracker overriding mongoid changeable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • 7.0.0
    • None
    • Persistence
    • None
    • rails 5.2.2.

    Description

      This only happens when running a rails console, or when workers I have built running in Sidekiq attempt to modify a resource. When it happens I get

      undefined method `changed?' for BSON::ObjectId

      which comes fromĀ 

      activemodel-5.2.2/lib/active_model/attribute_mutation_tracker.rb:49:in `changed?'
      if i change the method to the new version implemented in rails 5.2 ActiveModel:Dirty it causes undefined methods when running rails server.

      I'm at a complete loss on how to deal with this and there are virtually no similar issues I could find on google.

      Attachments

        Activity

          People

            oleg.pudeyev@mongodb.com Oleg Pudeyev
            skulleliete1 Nathaniel Turner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: