Make it work in Rails 4 and beyond
Merge pull request #3 from manastech/master

Make it work in Rails 4 and beyond