<eevar2> hi. you're the author of the better_nested_set plugin? I'm having some issues, think they're related to the code for dealing with scope, i.e. line 80 or so
my model does
acts_as_nested_set :scope => :client
which gives the following sql for #root():
SELECT * FROM accounts WHERE (client_id.nil? ?
"client_id IS NULL" : "client_id = #{client_id}" AND (parent_id IS NULL)) LIMIT 1
more to the issue than i'm grasping i think. lots of the sql seems to have ruby code in it -- if it isn't just some weird sql dialect.