/[Perly]/lib/Perly/Model/Code.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /lib/Perly/Model/Code.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations)
Sun Jun 3 15:34:30 2007 UTC (17 years ago) by dpavlin
File size: 583 byte(s)
use new J:P:CodePress to render textarea as syntax highlighted editor
1 dpavlin 2 use strict;
2     use warnings;
3    
4     package Perly::Model::Code;
5     use Jifty::DBI::Schema;
6    
7     use Perly::Record schema {
8    
9     column source =>
10 dpavlin 3 label is 'Source code',
11 dpavlin 2 type is 'text',
12 dpavlin 3 render_as 'Jifty::Plugin::CodePress::Textarea',
13 dpavlin 2 is mandatory;
14    
15     column owner =>
16     refers_to Perly::Model::User by 'id',
17     label is 'Owner',
18     default is defer { Jifty->web->current_user->id || 0 };
19    
20     column created_on =>
21     type is 'timestamp',
22     label is 'Created On',
23     default is defer { DateTime->now },
24     filters are 'Jifty::DBI::Filter::DateTime';
25    
26     };
27    
28     # Your model-specific methods go here.
29    
30     1;
31    

  ViewVC Help
Powered by ViewVC 1.1.26