[Catalyst-commits] r12818 - in trunk/examples/Tutorial/MyApp_Chapter4/MyApp: . lib/MyApp/Schema/ResultSet root/src

caelum at dev.catalyst.perl.org caelum at dev.catalyst.perl.org
Sun Feb 7 09:19:27 GMT 2010


Author: caelum
Date: 2010-02-07 09:19:26 +0000 (Sun, 07 Feb 2010)
New Revision: 12818

Modified:
   trunk/examples/Tutorial/MyApp_Chapter4/MyApp/lib/MyApp/Schema/ResultSet/Book.pm
   trunk/examples/Tutorial/MyApp_Chapter4/MyApp/myapp.db
   trunk/examples/Tutorial/MyApp_Chapter4/MyApp/root/src/wrapper.tt2
Log:
minor fix for chapter 4

Modified: trunk/examples/Tutorial/MyApp_Chapter4/MyApp/lib/MyApp/Schema/ResultSet/Book.pm
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter4/MyApp/lib/MyApp/Schema/ResultSet/Book.pm	2010-02-07 08:59:27 UTC (rev 12817)
+++ trunk/examples/Tutorial/MyApp_Chapter4/MyApp/lib/MyApp/Schema/ResultSet/Book.pm	2010-02-07 09:19:26 UTC (rev 12818)
@@ -13,7 +13,7 @@
 sub created_after {
     my ($self, $datetime) = @_;
 
-    my $date_str = $self->_source_handle->schema->storage
+    my $date_str = $self->result_source->schema->storage
                           ->datetime_parser->format_datetime($datetime);
 
     return $self->search({

Modified: trunk/examples/Tutorial/MyApp_Chapter4/MyApp/myapp.db
===================================================================
(Binary files differ)

Modified: trunk/examples/Tutorial/MyApp_Chapter4/MyApp/root/src/wrapper.tt2
===================================================================
--- trunk/examples/Tutorial/MyApp_Chapter4/MyApp/root/src/wrapper.tt2	2010-02-07 08:59:27 UTC (rev 12817)
+++ trunk/examples/Tutorial/MyApp_Chapter4/MyApp/root/src/wrapper.tt2	2010-02-07 09:19:26 UTC (rev 12818)
@@ -26,7 +26,7 @@
 
 <div id="content">
     [%# Status and error messages %]
-    <span class="message">[% status_msg %]</span>
+    <span class="message">[% status_msg || c.request.params.status_msg %]</span>
     <span class="error">[% error_msg %]</span>
     [%# This is where TT will stick all of your template's contents. -%]
     [% content %]




More information about the Catalyst-commits mailing list