Fix for rails 4
Merge pull request #288 from aypn0s/rails4

Fix for rails 4