Add a regression test for decorated type with `type_for_attribute`
Add a regression test for decorated type with `type_for_attribute`

It is a regression test for #41138.

Stellenticket/rails,yawboakye/rails,georgeclaghorn/rails,Envek/rails,rails/rails,yahonda/rails,bogdanvlviv/rails,rails/rails,betesh/rails,betesh/rails,betesh/rails,kddeisz/rails,rails/rails,lcreid/rails,tgxworld/rails,yahonda/rails,Stellenticket/rails,kddeisz/rails,esparta/rails,EmmaB/rails-1,yawboakye/rails,joonyou/rails,yawboakye/rails,Vasfed/rails,bogdanvlviv/rails,joonyou/rails,MSP-Greg/rails,Stellenticket/rails,kmcphillips/rails,tgxworld/rails,yahonda/rails,Stellenticket/rails,georgeclaghorn/rails,Edouard-chin/rails,esparta/rails,Edouard-chin/rails,MSP-Greg/rails,esparta/rails,Edouard-chin/rails,bogdanvlviv/rails,BlakeWilliams/rails,Erol/rails,yahonda/rails,bogdanvlviv/rails,yawboakye/rails,Envek/rails,kddeisz/rails,georgeclaghorn/rails,esparta/rails,rails/rails,tgxworld/rails,EmmaB/rails-1,Erol/rails,Vasfed/rails,lcreid/rails,Erol/rails,Edouard-chin/rails,EmmaB/rails-1,Erol/rails,BlakeWilliams/rails,georgeclaghorn/rails,kmcphillips/rails,lcreid/rails,BlakeWilliams/rails,Envek/rails,lcreid/rails,kmcphillips/rails,joonyou/rails,BlakeWilliams/rails,Vasfed/rails,MSP-Greg/rails,kddeisz/rails,Envek/rails,MSP-Greg/rails,betesh/rails,tgxworld/rails,joonyou/rails,Vasfed/rails,kmcphillips/rails