custom rs methods working
[dbsrgits/DBIx-Class-ResultSet-WithMetaData.git] / t / lib / DBICTest / Schema / ResultSet / Artist.pm
CommitLineData
b51d39c8 1package DBICTest::Schema::ResultSet::Artist;
2
3use Moose;
46845551 4use MooseX::Method::Signatures;
b51d39c8 5extends 'DBICTest::Schema::ResultSet';
6
46845551 7method with_substr () {
8 foreach my $row ($self->all) {
9 my $substr = substr($row->name, 0, 3);
10 $self->add_row_info(row => $row, info => { substr => $substr });
11 }
12 return $self;
13}
14
b51d39c8 151;