[Bast-commits] r9079 - in DBIx-Class/0.08/trunk/lib/DBIx/Class: Manual Storage

boghead at dev.catalyst.perl.org boghead at dev.catalyst.perl.org
Fri Apr 2 20:44:32 GMT 2010


Author: boghead
Date: 2010-04-02 21:44:32 +0100 (Fri, 02 Apr 2010)
New Revision: 9079

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
   DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
Log:
- Minor language cleanup in some of the Cookbook documentation
  (thanks metaperl and jester)
- Fix the synopsis for DBIC::Storage::DBI.  ->datetime_parser returns a class,
  so you need to call a method on it in order to transform a DateTime object



Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod	2010-04-02 19:31:34 UTC (rev 9078)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Cookbook.pod	2010-04-02 20:44:32 UTC (rev 9079)
@@ -367,8 +367,8 @@
 
 =head2 Predefined searches
 
-You can write your own L<DBIx::Class::ResultSet> class by inheriting from it
-and defining often used searches as methods:
+You can define frequently used searches as methods by subclassing
+L<DBIx::Class::ResultSet>:
 
   package My::DBIC::ResultSet::CD;
   use strict;

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm	2010-04-02 19:31:34 UTC (rev 9078)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm	2010-04-02 20:44:32 UTC (rev 9079)
@@ -93,7 +93,7 @@
   );
 
   $schema->resultset('Book')->search({
-     written_on => $schema->storage->datetime_parser(DateTime->now)
+     written_on => $schema->storage->datetime_parser->format_datetime(DateTime->now)
   });
 
 =head1 DESCRIPTION




More information about the Bast-commits mailing list