Displaying 1 result from an estimated 1 matches for "role_text".
Did you mean:
role_test
2007 Apr 24
1
bitmask(bitwise operation) support in Ferret
Hi,
in my person model,
I have a enumeration field "role" that take bits like 1, 2, 4, 8, 16,
.....
they represent person roles(eg: admin(1), QA(2), manager(4) .... ).
Each person can take on multiple roles.
say there''s person A that''s both a admin and QA(the role value is "3")
so if I search like "Person.find_by_content(''role:(1))", I