Now we can do diag $rs->hri_dump, ain't that nice
Peter Rabbitson [Sat, 16 May 2009 07:34:21 +0000 (07:34 +0000)]
t/lib/DBICTest/BaseResultSet.pm

index 7269f30..6d9df85 100644 (file)
@@ -6,4 +6,8 @@ use warnings;
 
 use base qw/DBIx::Class::ResultSet/;
 
+sub hri_dump {
+  return shift->search ({}, { result_class => 'DBIx::Class::ResultClass::HashRefInflator' });
+}
+
 1;