Fix to get working on Rails 4
clean commented code
Merge pull request #2 from mois3x/rails4

Rails4