Fix for Heroku Rails 4