Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Conversation

@stasl
Copy link

@stasl stasl commented Nov 3, 2014

added instance method to check if at least one role present

end
end
def #{attribute}_any?(*values)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this doing an array lookup as opposed to an actual bitmask or operation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants