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

ActiveSupport delegation no longer works with 7.1.0 (conflicts with Forwardable.delegate)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.1
    • Affects Version/s: 7.1.0
    • Component/s: None
    • None
    • Environment:
      ruby 2.6.5p114

      With the release of version 7.1.0 the ActiveSupport-provided Module#delegate method no longer functions within a model including Mongoid::Document. Any attempt to use delegate with instead be aliased to instance_delegate of forwardable.rb.

      ArgumentError: wrong number of arguments (given X, expected 1)
      from /<path>/ruby/2.6.0/forwardable.rb:133:in `instance_delegate'

      Current workarounds are:

      • Downgrade to 7.0.6
      • Place any delegate statements before Mongoid::Document

       

       

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            dave@davekrupinski.com Dave Krupinski
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: