Need to use _add_meta_method from new Moose onwards to avoid warnings
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Controller / Anon.pm
index 68b4fd6..1bc3698 100644 (file)
@@ -25,7 +25,6 @@ sub COMPONENT { # Don't do this yourself, use CatalystX::Component::Traits!
     # Special move as the methodattributes trait has changed our metaclass..
     $meta = find_meta($meta->name);
 
-    $meta->add_method('meta' => sub { $meta });
     $class = $meta->name;
     $class->new($app, $args);
 }