package DBIx::Class::Valiant::Validates; use Moo::Role; use Valiant::I18N; use Scalar::Util; with 'Valiant::Validates'; around default_validator_namespaces => sub { my ($orig, $self, @args) = @_; return 'DBIx::Class::Valiant::Validator', $self->$orig(@args); }; 1; =head1 NAME DBIx::Class::Valiant::Validates - Add Valiant to DBIC =head1 DESCRIPTION This is a role which extends L so that is finds validators under the L namespace. It adds this namespace to the top of the call list, that way we can if needed override core validators with versions that work properly under L. You shouldn't need to use this code directly yourself, it gets added automatically for you. =head1 SEE ALSO See L, L =head1 AUTHOR See L. =head1 COPYRIGHT & LICENSE See L. =cut