.subtree and .ancestors are methods from a gem, and I initially thought putting that in the example would be confusing. My workaround-example made it more confusing. 🙃
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You're totally right about not being able to call
.where
oncomment
; the example I used is wrong. I'm actually doing this:.subtree
and.ancestors
are methods from a gem, and I initially thought putting that in the example would be confusing. My workaround-example made it more confusing. 🙃