search for: is_higher_userlevel

Displaying 1 result from an estimated 1 matches for "is_higher_userlevel".

2006 May 08
3
operator overload on views
In my User auth scheme I have a userlevel. I''ve overloaded the User class operators like this: def >(item) if item.class == "User" self.userlevel > item.userlevel else self.userlevel > item end end (other operators are overloaded in essentially the same way). As I understand it, using the operator ">" inside the overloaded