Fixes Rails 4 support
Merge pull request #3 from AlessandroBerardi/master

Fixes Rails 4 support