Polymorphic Validator

Does anyone also feel like there should be a polymorphic validator in rails?

I often use this code https://gist.github.com/lifeiscontent/59f41121ef910941758a9b11083a9bba

when validating a polymorphic address model. I feel like this kind of validation should be baked into rails.

What does everyone else think?

Thanks!