• Stan Hu's avatar
    Remove Rails deprecation warning in CommitStatus · b15e631e
    Stan Hu authored
    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.
    b15e631e
commit_status.rb 7.45 KB