We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The descendants/descendants_of methods are instance/class methods, which cannot be use when using scopes. Find a way to allow things like
Node.where(foo: 'bar').descendants
instead of
Node.descendants_of(Node.where(foo: 'bar'))
The text was updated successfully, but these errors were encountered:
When this feature is implemented add a deprecation warning to switch over to new usage when an argument is passed to the class methods.
Sorry, something went wrong.
Solution found: Using current_scope method of AR we can access the current relation when calling the method.
current_scope
No branches or pull requests
The descendants/descendants_of methods are instance/class methods, which cannot be use when using scopes.
Find a way to allow things like
instead of
The text was updated successfully, but these errors were encountered: