Restore `private_constant` which is lost accidentally in #30941
Restore `private_constant` which is lost accidentally in #30941

https://github.com/rails/rails/pull/30941/files#diff-fc90ec41ef75be8b2259526fe1a8b663L53

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