Adds Rails 4.0 compatibiilty
Merge pull request #1 from gregates/rails4

Adds Rails 4.0 compatibiilty