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 06:23:09 +0000 (01:23 -0500)
commiteea9eb4d0a9d6d7453cfb6fca6bb6aae618254c4
treead22b502f31cd4f365f478457beb64ef394b527a
parent6ea852f8c8a254271541fef9ec233b436a85cdb9
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