From: Shawn M Moore Date: Sun, 9 Nov 2008 07:26:11 +0000 (+0000) Subject: use CMOPC->initialize instead of ->meta X-Git-Tag: 0.05~88 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a21e637dd74393668687c5b4fc4861b9cdf30ec;p=gitmo%2FMooseX-Role-Parameterized.git use CMOPC->initialize instead of ->meta --- diff --git a/lib/MooseX/Role/Parameterized.pm b/lib/MooseX/Role/Parameterized.pm index cd9d732..c6a84e7 100644 --- a/lib/MooseX/Role/Parameterized.pm +++ b/lib/MooseX/Role/Parameterized.pm @@ -20,14 +20,14 @@ sub parameter { $names = [$names] if !ref($names); for my $name (@$names) { - $caller->meta->add_parameter($name, @_); + Class::MOP::Class->initialize($caller)->add_parameter($name, @_); } } sub role { my $caller = shift; my $role_generator = shift; - $caller->meta->role_generator($role_generator); + Class::MOP::Class->initialize($caller)->role_generator($role_generator); } sub init_meta {