[Jifty-commit] r2047 - jifty/trunk/lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 22 15:42:47 EDT 2006


Author: audreyt
Date: Sun Oct 22 15:42:46 2006
New Revision: 2047

Modified:
   jifty/trunk/lib/Jifty/Action.pm

Log:
* Jifty::Action POD: Copy-n-paste the synopsis from Jifty::Param::Schema
  and correctly L<> there.

Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm	(original)
+++ jifty/trunk/lib/Jifty/Action.pm	Sun Oct 22 15:42:46 2006
@@ -9,12 +9,21 @@
 
 =head1 SYNOPSIS
 
-  package MyApp::Action::Foo;
-  use base qw/MyApp::Action Jifty::Action/;
+    package MyApp::Action::Foo;
+    use Jifty::Param::Schema;
+    use Jifty::Action schema {
+
+    param bar =>
+        type is 'checkbox',
+        label is 'Want Bar?',
+        hints is 'Bar is this cool thing that you really want.',
+        default is 0;
+
+    };
   
-  sub take_action {
-    ...
-  }
+    sub take_action {
+        ...
+    }
   
   1;
 
@@ -27,7 +36,7 @@
 See also L<Jifty::Action::Record> for data-oriented actions, 
 L<Jifty::Result> for how to return values from actions.
 
-See Jifty::Action::Schema;
+See L<Jifty::Param::Schema> for more details.
 
 =cut
 


More information about the Jifty-commit mailing list