X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FResultSetManager.pm;h=9989b2e64e57efc76abf37d8bea083ba787cdf04;hb=1934596800201c16279d6d1b639507daec050447;hp=258cc7cf762c03992fa1196833cf71d0b2a4b530;hpb=2cb360ccdc22689cc9813abca924aee4ffdfee10;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/ResultSetManager.pm b/lib/DBIx/Class/ResultSetManager.pm index 258cc7c..9989b2e 100644 --- a/lib/DBIx/Class/ResultSetManager.pm +++ b/lib/DBIx/Class/ResultSetManager.pm @@ -58,4 +58,37 @@ sub _register_resultset_class { } } -1; \ No newline at end of file +1; + +__END__ + +=head1 NAME + + DBIx::Class::ResultSetManager - helpful methods for managing resultset classes (EXPERIMENTAL) + +=head1 SYNOPSIS + + # in a table class + __PACKAGE__->load_components(qw/ResultSetManager/); + __PACKAGE__->load_resultset_components(qw/AlwaysRS/); + + # will be removed from the table class and inserted into a table-specific resultset class + sub foo : resultset { ... } + +=head1 DESCRIPTION + +This package implements two useful features for customizing resultset classes. +C loads components in addition to C +(or whatever you set as C). Any methods tagged with the C +attribute will be moved into a table-specific resultset class (by default called +C). + +=head1 AUTHORS + +David Kamholz + +=head1 LICENSE + +You may distribute this code under the same terms as Perl itself. + +=cut