X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FOOBase.pm;h=6600e0222833fc26ac07fc26d3f02aa3f35c8f6a;hb=0fe38bac72b8f278399b99d1521350fd5083a219;hp=37896bc4fee9d34af79be0f4e5b7b723fe44a254;hpb=0e16a5214d3617d0df54712869b2da0f3c64fcdb;p=debbugs.git diff --git a/Debbugs/OOBase.pm b/Debbugs/OOBase.pm index 37896bc..6600e02 100644 --- a/Debbugs/OOBase.pm +++ b/Debbugs/OOBase.pm @@ -28,6 +28,15 @@ has schema => (is => 'ro', isa => 'Object', predicate => 'has_schema', ); +sub schema_argument { + my $self = shift; + if ($self->has_schema) { + return (schema => $self->schema); + } else { + return (); + } +} + __PACKAGE__->meta->make_immutable; 1;