Jifty/Plugin/ActorMetadata.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 12 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 package Jifty::Plugin::ActorMetadata;
5 use base qw/Jifty::Plugin/;
6  
7 =head1 NAME
8  
9 Jifty::Plugin::ActorMetadata - add created_by created_on updated_by updated_on columns to a model class
10  
11 =head1 DESCRIPTION
12  
13 This plugin adds a model mixin which adds C<created_by>,
14 C<created_on>, C<updated_by> and C<updated_on> columns to a model
15 class.
16  
17 =head1 SYNOPSIS
18  
19 use strict;
20 use warnings;
21
22 package YourApp::Model::Thingy;
23 use Jifty::DBI::Schema;
24
25 use YourApp::Record schema {
26
27 ...
28
29 };
30 use Jifty::Plugin::ActorMetadata::Mixin::Model::ActorMetadata;
31 #Provides created_by, created_on, updated_by and updated_on
32
33  
34 =cut
35  
36 1;