You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trick here is wrapping :ancestry in an Array. This causes acts_as_list to treat the scope as a hash condition (:ancestry => ancestry) which correctly becomes ancestry IS NULL or ancestry = 'some value' as necessary.