Support rails 4
Merge pull request #31 from projecthydra/rails4

Support rails 4