Update version number required for Catalyst::Model::DBIC::Schema to avoid warnings
[catagits/Catalyst-Manual.git] / lib / Catalyst / Manual / Tutorial / BasicCRUD.pod
index f0bd8b5..ac5261d 100644 (file)
@@ -952,7 +952,7 @@ C<load_namespaces>.
 If you are following along in Ubuntu 8.10, you will need to
 upgrade your version of 
 L<Catalyst::Model::DBIC::Schema|Catalyst::Model::DBIC::Schema>
-to 0.22 or higher.  To do this, we can install directly from CPAN:
+to 0.23 or higher.  To do this, we can install directly from CPAN:
 
     $ cpan Catalyst::Model::DBIC::Schema
 
@@ -960,7 +960,7 @@ Then make sure you are running an appropriate version:
 
     $ perl -MCatalyst::Model::DBIC::Schema -e \
         'print "$Catalyst::Model::DBIC::Schema::VERSION\n"'
-    0.22
+    0.23
 
 Make sure you get version 0.22 or higher.
 
@@ -1161,14 +1161,14 @@ Then open C<lib/MyApp/Schema/ResultSet/Books.pm> and enter the following:
     =cut
     
     sub created_after {
-      my ($self, $datetime) = @_;
-      
-      my $date_str = $self->_source_handle->schema->storage
-                            ->datetime_parser->format_datetime($datetime);
-    
-      return $self->search({
-          created => { '>' => $date_str }
-      });
+        my ($self, $datetime) = @_;
+        
+        my $date_str = $self->_source_handle->schema->storage
+                              ->datetime_parser->format_datetime($datetime);
+        
+        return $self->search({
+            created => { '>' => $date_str }
+        });
     }
     
     1;
@@ -1289,11 +1289,11 @@ C<lib/MyApp/Schema/ResultSet/Books.pm> and add the following method:
     =cut
     
     sub title_like {
-      my ($self, $title_str) = @_;
+        my ($self, $title_str) = @_;
       
-      return $self->search({
-          title => { 'like' => "%$title_str%" }
-      });
+        return $self->search({
+            title => { 'like' => "%$title_str%" }
+        });
     }
 
 We defined the search string as C<$title_str> to make the method more