Skip to content

Remove Rails deprecation warning in CommitStatus

Stan Hu requested to merge sh-remove-deprecation-warning-commit-status into master

This removes the deprecation warning:

DEPRECATION WARNING: Class level methods will no longer inherit
scoping from `match_id_and_lock_version` in Rails 6.1. To continue using
the scoped relation, pass it into the block directly. To instead access
the full set of models, as Rails 6.1 will, use `CommitStatus.unscoped`,
or `CommitStatus.default_scoped` if a model has default scopes. (called
from block (2 levels) in <class:CommitStatus> at
/home/git/app/models/commit_status.rb:69 

This was introduced in https://github.com/rails/rails/pull/35186.

Edited by Stan Hu

Merge request reports