Improve loader to make it work on rails 4
Merge pull request #16 from Helabs/rails4-loader

Improve loader to make it work on rails 4