Patch #32911
Rails 6: Fix deprecation warning "Class level methods will no longer inherit scoping"
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Rails support | |||
Target version: | 4.2.0 |
Description
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)
Related issues
Associated revisions
Rails 6: Fix deprecation warning "Class level methods will no longer inherit scoping" (#32911).
Patch by Pavel Rosický.
History
#1
Updated by Marius BALTEANU 12 months ago
- Related to Feature #29914: Migrate to Rails 6 added
#3
Updated by Marius BALTEANU 12 months ago
Tests pass here: https://gitlab.com/redmine-org/redmine/pipelines/113171478