X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FStoredResultSource.pm;fp=lib%2FCatalyst%2FController%2FDBIC%2FAPI%2FStoredResultSource.pm;h=763165488a164943a53ec0f1696eee537a17c378;hp=6c04d0e3c0b9113448e1248a56223b282c66bc2a;hb=c0c8e1c607a024ac8425f6f7d889d35cd63bcebc;hpb=8ea592cbf64db6d549685f3962c88d925fe7cdb1 diff --git a/lib/Catalyst/Controller/DBIC/API/StoredResultSource.pm b/lib/Catalyst/Controller/DBIC/API/StoredResultSource.pm index 6c04d0e..7631654 100644 --- a/lib/Catalyst/Controller/DBIC/API/StoredResultSource.pm +++ b/lib/Catalyst/Controller/DBIC/API/StoredResultSource.pm @@ -10,17 +10,17 @@ use namespace::autoclean; requires '_application'; -=attribute_public class is: ro, isa: Str +=attribute_public class -class is the name of the class that is the model for this controller +The name of the Catalyst model for this controller. =cut has 'class' => ( is => 'ro', isa => Str, writer => '_set_class' ); -=attribute_public result_class is: ro, isa: Str +=attribute_public result_class -result_class is the name of the resultset class that is the model for this controller +Populates the result_class attribute of resultsets. =cut @@ -32,7 +32,7 @@ has 'result_class' => ( =method_public stored_result_source -This is the result source for the controller +Returns the result_source of the stored_model. =cut @@ -42,7 +42,11 @@ sub stored_result_source { =method_public stored_model -This is the model for the controller +Returns the model for the configured class. + +Be aware that model is called as a class method on the Catalyst application +and not as an instance method on $c which might lead to unexpected results +in conjunction with ACCEPT_CONTEXT! =cut