-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
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
- is caused by
-
MONGOID-4833 Fix test failures on Ruby 3.0
-
- Closed
-
- is duplicated by
-
MONGOID-4850 "delegate" is broken when using Rails
-
- Closed
-
- related to
-
MONGOID-4865 include_root_in_json setting retrieval does not respect hierarchy
-
- Closed
-
- links to