From: Matt S Trout Date: Thu, 19 Jan 2006 17:10:41 +0000 (+0000) Subject: Added 'self' method to ResultSet X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ccb5216190d7fc6a6e35649c9250de8d82cd28e6;p=dbsrgits%2FDBIx-Class-Historic.git Added 'self' method to ResultSet --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index ae6fb3e..53e06ef 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -481,6 +481,16 @@ sub find_or_create { return defined($exists) ? $exists : $self->create($hash); } +=head2 self + + my $rs = $rs->self; + +Just returns the resultset. Useful for Template Toolkit. + +=cut + +sub self { shift; } + =head1 ATTRIBUTES The resultset takes various attributes that modify its behavior.