[Bps-public-commit] r16077 - in Prophet/branches/dispatcher: lib/Prophet/CLI

sartak at bestpractical.com sartak at bestpractical.com
Thu Sep 25 17:01:25 EDT 2008


Author: sartak
Date: Thu Sep 25 17:01:25 2008
New Revision: 16077

Modified:
   Prophet/branches/dispatcher/   (props changed)
   Prophet/branches/dispatcher/lib/Prophet/CLI/Dispatcher.pm

Log:
 r72492 at onn:  sartak | 2008-09-25 17:01:20 -0400
 Remove an assumption made by the dispatcher. The code may reappear as:
 
 run("$2 $1", @_) or something (as long as it's type agnostic)


Modified: Prophet/branches/dispatcher/lib/Prophet/CLI/Dispatcher.pm
==============================================================================
--- Prophet/branches/dispatcher/lib/Prophet/CLI/Dispatcher.pm	(original)
+++ Prophet/branches/dispatcher/lib/Prophet/CLI/Dispatcher.pm	Thu Sep 25 17:01:25 2008
@@ -38,12 +38,6 @@
     $server->run;
 };
 
-on [ ['create', 'update', 'delete'], qr/.*/] => sub {
-    my $self = shift;
-    $self->context->type($2);
-    run($1, $self);
-};
-
 on create => sub {
     my $self   = shift;
     my $record = $self->context->_get_record_object;



More information about the Bps-public-commit mailing list