Ar Scopes

Hi,

I’ve been having problem with applying scopes to my related models. The manual is clear on this topic, yet I doesn’t work.

I’m running the latest offical release from the framework so can anybody explain the following:

My model Menu attributes id, name, status, menuIdFk, clearanceLevel.

Using AR I want to pull all items with their submenus (same table menuIdFk) that have an active status and ‘<=’ to a certain clearancelevel that my user has (introduced trough a parametrised scope).

Can anybody help me out?

Thank you!