Fix production error with Rails 4.0