X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FAction.pm;h=a74eb29f0ef1fa8cf986a784c3cca079a12757a8;hp=4469a1d6474932bd06c9d8753f7a3c930332af85;hb=f3414019f472b55682ef3af53f761b6db7955887;hpb=6680c772eaa987eafdb32e9437fd2d649dc914d9 diff --git a/lib/Catalyst/Action.pm b/lib/Catalyst/Action.pm index 4469a1d..a74eb29 100644 --- a/lib/Catalyst/Action.pm +++ b/lib/Catalyst/Action.pm @@ -17,6 +17,7 @@ L subclasses. =cut +use Class::C3; use Moose; has class => (is => 'rw'); @@ -32,19 +33,6 @@ no warnings 'recursion'; #__PACKAGE__->mk_accessors(qw/class namespace reverse attributes name code/); -use overload ( - - # Stringify to reverse for debug output etc. - q{""} => sub { shift->reverse() }, - - # Codulate to execute to invoke the encapsulated action coderef - '&{}' => sub { my $self = shift; sub { $self->execute(@_); }; }, - - # Make general $stuff still work - fallback => 1, - -); - sub dispatch { # Execute ourselves against a context my ( $self, $c ) = @_; #Moose todo: grrrrrr. this is no good. i don't know enough about it to