Make things work in Rails 4