Rails 4

Upgrade gem to be compatible with Rails 4

https://jira.backupify.com/browse/CORE-3773