scope on instance methods, how to? #81

JeanMertz opened this Issue Oct 18, 2011 · 2 comments

2 participants


I am having trouble understanding how to scope the instance methods of Ancestry. When I do @page.siblings, I want all siblings with the same ancestry value, but I also want this scoped by website_id for example. Right now, @page.siblings simply shows all pages with the same ancestry value, is there a way to further scope this (and all other methods) by website_id?


Ah right, that makes sense. Thanks for the quick reply. So there is no way to make it so all instance methods of Ancestry always use the website_id = x scope?

@JeanMertz JeanMertz closed this Oct 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment