From: matthewt Date: Fri, 25 Jan 2008 07:43:58 +0000 (+0000) Subject: use alias_method instead of trying to bolt in the MOP add_method X-Git-Tag: v1.003015~138 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d38ed76c8188125528b83c5be35a80f156eac2d2;p=p5sagit%2FDevel-REPL.git use alias_method instead of trying to bolt in the MOP add_method git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@3974 bd8105ee-0ff8-0310-8827-fb3f25b6796d --- diff --git a/lib/Devel/REPL/Plugin.pm b/lib/Devel/REPL/Plugin.pm index bfa57d3..f2f6d8a 100644 --- a/lib/Devel/REPL/Plugin.pm +++ b/lib/Devel/REPL/Plugin.pm @@ -8,7 +8,7 @@ use Moose::Role (); sub import { my $target = caller; my $meta = Devel::REPL::Meta::Plugin->initialize($target); - $meta->Moose::Meta::Class::add_method('meta' => sub { $meta }); + $meta->alias_method('meta' => sub { $meta }); goto &Moose::Role::import; }