fixed subclassing when using expose_methods + test
[catagits/Catalyst-View-TT.git] / lib / Catalyst / View / TT.pm
index 3d8c751..d346b61 100644 (file)
@@ -278,7 +278,7 @@ sub template_vars {
     if ($self->expose_methods) {
         my $meta = $self->meta;
         foreach my $method_name (@{$self->expose_methods}) {
-            my $method = $meta->get_method( $method_name );
+            my $method = $meta->find_method_by_name( $method_name );
             unless ($method) {
                 Catalyst::Exception->throw( "$method_name not found in TT view" );
             }