Merge pull request #29 from wshafer/master

 Added get rules by resources method to help optimize db queries