[Rt-commit] rt branch, admin_ui, updated. dbba79c8bbd6ad4340a41cb47f8fc83a5b674928
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Jan 1 07:59:48 EST 2010
The branch, admin_ui has been updated
via dbba79c8bbd6ad4340a41cb47f8fc83a5b674928 (commit)
from 549b8cf6a6baf5bce77616e09eae58f373136d1b (commit)
Summary of changes:
lib/RT/View/CRUD.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit dbba79c8bbd6ad4340a41cb47f8fc83a5b674928
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Jan 1 20:59:35 2010 +0800
make update moniker more right
diff --git a/lib/RT/View/CRUD.pm b/lib/RT/View/CRUD.pm
index 4b2e2f2..d4ce84c 100644
--- a/lib/RT/View/CRUD.pm
+++ b/lib/RT/View/CRUD.pm
@@ -55,6 +55,7 @@ use base 'Jifty::View::Declare::CRUD';
__PACKAGE__->use_mason_wrapper;
use constant per_page => 50;
+use Text::Naming::Convention qw/renaming/;
template 'index.html' => page {
@@ -221,7 +222,7 @@ content {
my $object = $class->new;
$object->load( get('id') );
- my $moniker = 'update_' . lc $self->object_type;
+ my $moniker = 'update_' . renaming( $self->object_type );
my $action = $object->as_update_action( moniker => $moniker, );
with( name => $moniker ), form {
render_action($action);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list