Make it work with rails4
Merge pull request #82 from projecthydra/rails4

Make it work with rails4