Updated to work on Rails 4.1
Merge pull request #4 from RonnieDilli/master

Updated to work on Rails 4.1