[doc] replace pseudocode with real code
Moritz Lenz [Thu, 19 May 2011 19:53:09 +0000 (21:53 +0200)]
lib/DBIx/Class/ResultSet.pm

index 2d1380f..900355c 100644 (file)
@@ -86,7 +86,7 @@ another.
   sub get_data {
     my $self = shift;
     my $request = $self->get_request; # Get a request object somehow.
-    my $schema = $self->get_schema;   # Get the DBIC schema object somehow.
+    my $schema = $self->result_source->schema;
 
     my $cd_rs = $schema->resultset('CD')->search({
       title => $request->param('title'),