initialize a metaclass when trying to apply all roles
authorChris Prather <chris@prather.org>
Sat, 21 Aug 2010 07:09:07 +0000 (03:09 -0400)
committerJesse Luehrs <doy@tozt.net>
Sun, 19 Jun 2011 08:14:13 +0000 (03:14 -0500)
commit10531491e0fb0cbeb11ac548e68d2080c52499d0
tree3690a88da0c5944c7c82b149c7d33609c088e43d
parent4887f7e33128975b3b05e5cd2f83daced21d1cd7
initialize a metaclass when trying to apply all roles

Applying a role to a non-Moose class currently requires manually
initializing the metaclass before calling
Moose::Util::apply_all_roles(). This commit changes that by swapping
find_meta for initialize() when setting up $applicant.
lib/Moose/Util.pm
t/roles/apply_role.t