X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2FMaypole%2FModel%2FBase.pm;h=6e60aea7f9c3f4505b93263eaa31fcef4dc240d2;hb=8237e83ed726d86f1ef754e51077eb2aff0cd4ed;hp=a9b3a32a7b9b57ccb6d13f652db6175a1b94fc48;hpb=cede90d898b66d4b12587e4993e591079a9d4b0d;p=maypole.git diff --git a/lib/Maypole/Model/Base.pm b/lib/Maypole/Model/Base.pm index a9b3a32..6e60aea 100644 --- a/lib/Maypole/Model/Base.pm +++ b/lib/Maypole/Model/Base.pm @@ -18,7 +18,7 @@ sub process { $r->objects([ $obj ]); shift @{$r->{args}}; } - $class->$method($r); + $class->$method($r, $obj, @{$r->{args}}); } sub display_columns { @@ -125,7 +125,7 @@ Return a hash mapping column names with human-readable equivalents. 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