Fixes Rails 4 bug on Travis CI