Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implements the has_cached_role? method to prevent N+1 issues #369
This method will take the preloaded roles and use ruby enumerable to check if user has the role without extra queries.