/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Sun Jun 3 11:28:02 2007 UTC (16 years, 11 months ago) by dpavlin
File size: 507 byte(s)
added User and Code models
1 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 type is 'text',
11 is mandatory;
12
13 column owner =>
14 refers_to Perly::Model::User by 'id',
15 label is 'Owner',
16 default is defer { Jifty->web->current_user->id || 0 };
17
18 column created_on =>
19 type is 'timestamp',
20 label is 'Created On',
21 default is defer { DateTime->now },
22 filters are 'Jifty::DBI::Filter::DateTime';
23
24 };
25
26 # Your model-specific methods go here.
27
28 1;
29

  ViewVC Help
Powered by ViewVC 1.1.26