EppO/rolify — pull request #184 by guyguyon (2013-09-12 15:05:48+00:00)
Title: cache has_role answer

add caching to has_role? so the code wont unnecessarily touch the database.

in any has_role? there is a request to the database. this is a waste because we already ask for this data.
I've added sort of caching for that base on instance variable.

hope you'll like it !