Add scope for all inclusive bits
Closed this issue · 1 comments
shkm commented
E.g. if I do where(permissions: %i[read execute])
it will return all items where permissions contain read OR execute. We'd like a scope that returns only items that include BOTH read AND execute.
This would be something like (bits & column = bits)
shkm commented
Wow, this is already implemented (with_
). Let's add a note to the readme.