RolifyCommunity/rolify

View on GitHub
lib/generators/active_record/templates/README

Summary

Maintainability
Test Coverage
Now, you just have to run the migration using rake command:

   rake db:migrate

and you will be able to add the resourcify method inside all models you want 
scoped by a role.

===============================================================================