Update Shop::Ship to use Moose instead of C::IO. Update tests, and core code. Provide a shim for the old syntax.

This commit is contained in:
Colin Kuskie 2010-06-24 13:41:07 -07:00
parent 9678c3d8a7
commit 6ac0aa936c
4 changed files with 30 additions and 51 deletions

View file

@ -199,7 +199,7 @@ sub www_ship {
my $session = shift;
my $output = undef;
my $method = "www_".$session->form->get("method");
my $ship = WebGUI::Shop::Ship->new($session);
my $ship = WebGUI::Shop::Ship->new(session => $session);
if ($method ne "www_" && $ship->can($method)) {
$output = $ship->$method($session);
}