Update ranked-model for Rails 4