Hi!
I’ve a schema with a really specific line:
required(:phone_number, Types::StringWithoutSpaces).filled(:str?, :phone_number?)
I’d like to be able to reuse this across different schema (for example in SignUpSchema
and SignInSchema
), without the need to copy / paste the required
line.