is no longer allowed by mongoid as of version 7.1.0 and causes an exception to be raised. The correct way to get the default scope is:
def to_scope(scope)
scope.all
end
I have tested this in my application successfully. I would appreciate it if you could address this issue as soon as possible, as it is a breaking change for my application.
The following code:
is no longer allowed by mongoid as of version 7.1.0 and causes an exception to be raised. The correct way to get the default scope is:
I have tested this in my application successfully. I would appreciate it if you could address this issue as soon as possible, as it is a breaking change for my application.