Actions
Patch #32911
closedRails 6: Fix deprecation warning "Class level methods will no longer inherit scoping"
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)
Files
Related issues
Actions