Because the descendants and subtree methods use raw sql as part of their conditions, using them with another scope method breaks if that scope uses joins. This commit fixes that by adding the table name to the sql.
Fix descendants and subtree methods to work properly with scopes that…
… use joins by including the table name in the condition sql.
I'm having this same problem, +1 for merging into main
Same problem here +1
Fix ordered_by_ancestry and ordered_by_ancestry_and scopes to work pr…
…operly with scopes that use joins by including the table name in the condition sql.
Didn't realize I made this pull request off my master. I'm gonna close this and re-request off my branch for join fixes. Feel free to re-bump it :)