mro compat stuff
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Action.pm
index 4469a1d..b426530 100644 (file)
@@ -17,6 +17,8 @@ L<Catalyst::Controller> subclasses.
 
 =cut
 
+use MRO::Compat;
+use mro 'c3';
 use Moose;
 
 has class => (is => 'rw');
@@ -32,19 +34,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