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

XMLWordPrintableJSON

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

      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 (Inactive)
          Reporter:
          Dave Krupinski
          Votes:
          2 Vote for this issue
          Watchers:
          5 Start watching this issue

            Error rendering 'com.atlassian.jira.jira-view-issue-plugin:datesmodule'. Please contact your Jira administrators.