Improve deprecation message for leaking scope
Improve deprecation message for leaking scope

Follow up of #35280.

If a model has default scopes, vanilla `klass.all` is not the same with
`klass.unscoped`.

In that case, we should use `klass.default_scoped` instead.

EmmaB/rails-1,repinel/rails,notapatch/rails,vipulnsward/rails,georgeclaghorn/rails,MSP-Greg/rails,Envek/rails,yawboakye/rails,bogdanvlviv/rails,EmmaB/rails-1,fabianoleittes/rails,tgxworld/rails,eileencodes/rails,yahonda/rails,yahonda/rails,Vasfed/rails,mechanicles/rails,esparta/rails,mechanicles/rails,georgeclaghorn/rails,prathamesh-sonpatki/rails,Erol/rails,yhirano55/rails,Edouard-chin/rails,Vasfed/rails,eileencodes/rails,yalab/rails,notapatch/rails,yawboakye/rails,Vasfed/rails,lcreid/rails,lcreid/rails,yahonda/rails,prathamesh-sonpatki/rails,iainbeeston/rails,tgxworld/rails,schuetzm/rails,iainbeeston/rails,Edouard-chin/rails,Stellenticket/rails,Stellenticket/rails,yhirano55/rails,kddeisz/rails,jeremy/rails,Erol/rails,betesh/rails,palkan/rails,notapatch/rails,eileencodes/rails,schuetzm/rails,BlakeWilliams/rails,gauravtiwari/rails,Vasfed/rails,yhirano55/rails,eileencodes/rails,kmcphillips/rails,BlakeWilliams/rails,BlakeWilliams/rails,MSP-Greg/rails,yhirano55/rails,bogdanvlviv/rails,repinel/rails,vipulnsward/rails,rails/rails,tjschuck/rails,Stellenticket/rails,rafaelfranca/omg-rails,BlakeWilliams/rails,Edouard-chin/rails,rafaelfranca/omg-rails,betesh/rails,iainbeeston/rails,tjschuck/rails,yahonda/rails,repinel/rails,vipulnsward/rails,MSP-Greg/rails,kmcphillips/rails,lcreid/rails,rails/rails,kmcphillips/rails,jeremy/rails,prathamesh-sonpatki/rails,kmcphillips/rails,bogdanvlviv/rails,yalab/rails,Stellenticket/rails,prathamesh-sonpatki/rails,jeremy/rails,esparta/rails,tgxworld/rails,yawboakye/rails,Edouard-chin/rails,Erol/rails,EmmaB/rails-1,georgeclaghorn/rails,joonyou/rails,palkan/rails,rails/rails,palkan/rails,mechanicles/rails,betesh/rails,repinel/rails,starknx/rails,vipulnsward/rails,esparta/rails,starknx/rails,rails/rails,yalab/rails,kddeisz/rails,kddeisz/rails,joonyou/rails,starknx/rails,mechanicles/rails,Envek/rails,palkan/rails,jeremy/rails,fabianoleittes/rails,notapatch/rails,gauravtiwari/rails,joonyou/rails,yawboakye/rails,tjschuck/rails,fabianoleittes/rails,rafaelfranca/omg-rails,Envek/rails,Envek/rails,Erol/rails,gauravtiwari/rails,yalab/rails,tgxworld/rails,tjschuck/rails,lcreid/rails,bogdanvlviv/rails,esparta/rails,iainbeeston/rails,joonyou/rails,kddeisz/rails,fabianoleittes/rails,MSP-Greg/rails,schuetzm/rails,betesh/rails,georgeclaghorn/rails,schuetzm/rails