Support rails4
Merge pull request #18 from projecthydra/rails4

Support rails4