プロジェクト

全般

プロフィール

Vote #80644

完了

Rails 6: Fix deprecation warning "Class level methods will no longer inherit scoping"

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Rails support_44
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
44
version_id:
152
issue_org_id:
32911
author_id:
123153
assigned_to_id:
332
comments:
4
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

fixes

DEPRECATION WARNING: Class level methods will no longer inherit scoping from `visible` 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 `GroupAnonymous.unscoped`, or `GroupAnonymous.default_scoped`
 if a model has default scopes. (called from block in project_ids_by_role at /redmine/app/models/user.rb:638)

(this change is backward compatible)


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Tests pass here: https://gitlab.com/redmine-org/redmine/pipelines/113171478
--------------------------------------------------------------------------------
Committed the patch. Thank you.
--------------------------------------------------------------------------------


related_issues

relates,Closed,29914,Migrate to Rails 6.1 with Zeitwerk autoloading

Admin Redmine さんが3年以上前に更新

  • カテゴリRails support_44 にセット
  • 対象バージョン4.2.0_152 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0