return if $r->{template}; # Authentication has set this, we're done.
$r->{template} = $method;
+ $r->objects([]);
my $obj = $class->retrieve( $r->{args}->[0] );
if ($obj) {
$r->objects([ $obj ]);
shift @{$r->{args}};
}
- $class->$method($r);
+ $class->$method($r, $obj, @{$r->{args}});
}
sub display_columns {
sub column_names { my $class = shift; map {
my $col = $_;
- $col =~ s/_+(\w)?/ \U\1/g;
+ $col =~ s/_+(\w)?/ \U$1/g;
$_ => ucfirst $col } $class->columns }
=head2 description