Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
Types::Any.constrained(type: ARModel)
Dry::Types['any'].constrained(type: ApplicationRecord)
, or you can specify a concrete class Dry::Types['any'].constrained(type: UserRecord)
, depends on your needs