MartinJNash / Royce

A Ruby on Rails roles solution.
MIT License
210 stars 14 forks source link

Small code optimizations #5

Closed grzlus closed 10 years ago

grzlus commented 10 years ago

I changed a few lines of code. I added small optimization for available roles and also has_role? method use DB to check if user has role, not pluck all roles.

MartinJNash commented 10 years ago

I added the exists? checks in 19d0fca. Now the rest of your PR cannot be cleanly merged. Can you make the other changes again so you can show up in the contributors list? Thanks!