[Catalyst-commits] r10090 - Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial

kiffin at dev.catalyst.perl.org kiffin at dev.catalyst.perl.org
Tue May 12 11:53:40 GMT 2009


Author: kiffin
Date: 2009-05-12 11:53:40 +0000 (Tue, 12 May 2009)
New Revision: 10090

Modified:
   Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/Authentication.pod
Log:
Completed all modifications required for depluralization.


Modified: Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/Authentication.pod
===================================================================
--- Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/Authentication.pod	2009-05-12 04:03:54 UTC (rev 10089)
+++ Catalyst-Manual/5.70/branches/depluralise/lib/Catalyst/Manual/Tutorial/Authentication.pod	2009-05-12 11:53:40 UTC (rev 10090)
@@ -653,7 +653,7 @@
 
 If you then open one of the Result Classes, you will see that it 
 includes EncodedColumn in the C<load_components> line.  Take a look at 
-C<lib/MyApp/Schema/Result/Users.pm> since that's the main class where we
+C<lib/MyApp/Schema/Result/User.pm> since that's the main class where we
 want to use hashed and salted passwords:
 
     __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp", "EncodedColumn", "Core");
@@ -661,7 +661,7 @@
 
 =head2 Modify the "password" Column to Use EncodedColumn
 
-Open the file C<lib/MyApp/Schema/Result/Users.pm> and enter the following
+Open the file C<lib/MyApp/Schema/Result/User.pm> and enter the following
 text below the "# DO NOT MODIFY THIS OR ANYTHING ABOVE!" line but above
 the closing "1;":
 
@@ -712,7 +712,7 @@
     
     my $schema = MyApp::Schema->connect('dbi:SQLite:myapp.db');
     
-    my @users = $schema->resultset('Users')->all;
+    my @users = $schema->resultset('User')->all;
     
     foreach my $user (@users) {
         $user->password('mypass');
@@ -733,7 +733,7 @@
 
 Then dump the users table to verify that it worked:
 
-    $ sqlite3 myapp.db "select * from users"
+    $ sqlite3 myapp.db "select * from user"
     1|test01|38d3974fa9e9263099f7bc2574284b2f55473a9bM=fwpX2NR8|t01 at na.com|Joe|Blow|1
     2|test02|6ed8586587e53e0d7509b1cfed5df08feadc68cbMJlnPyPt0I|t02 at na.com|Jane|Doe|1
     3|test03|af929a151340c6aed4d54d7e2651795d1ad2e2f7UW8dHoGv9z|t03 at na.com|No|Go|0




More information about the Catalyst-commits mailing list