allow setting the result_class to undef to prevent the usage of HashRefInflator
Alexander Hartmaier [Fri, 21 Oct 2011 17:42:34 +0000 (19:42 +0200)]
Changes
lib/Catalyst/Controller/DBIC/API/StoredResultSource.pm

diff --git a/Changes b/Changes
index f8f469e..4168866 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,7 @@ Revision history for Catalyst-Controller-DBIC-API: {{ $dist->version }}
 {{ $NEXT }}
 
 - Use the column accessor instead of set_column when inserting new objects
+- Allow setting the result_class to undef to prevent the usage of HashRefInflator
 
 2.004001  2011-08-19 16:17:53 Europe/Vienna
 
index a6c301c..2d9f9f3 100644 (file)
@@ -23,7 +23,7 @@ result_class is the name of the resultset class that is the model for this contr
 
 =cut
 
-has 'result_class' => ( is => 'ro', isa => Str, default => 'DBIx::Class::ResultClass::HashRefInflator' );
+has 'result_class' => ( is => 'ro', isa => Maybe[Str], default => 'DBIx::Class::ResultClass::HashRefInflator' );
 
 =method_public stored_result_source