Revert "make re-applying a role to an object instance a no-op."
authorDave Rolsky <autarch@houseabsolute.urth.org>
Sat, 14 Mar 2009 18:12:38 +0000 (13:12 -0500)
committerDave Rolsky <autarch@houseabsolute.urth.org>
Sat, 14 Mar 2009 18:12:38 +0000 (13:12 -0500)
commitb02f817d7475f4c503fa90d6f7f79a541c6464c9
tree7c8819444c3526c69b57e8ebfa03eff2e69263ca
parent93de3710d42883d503084b44bad7be06399c24aa
Revert "make re-applying a role to an object instance a no-op."

The fix is to just check for this oneself:

 Role->meta->apply($obj) unless $obj->meta->does_role('Role');

This reverts commit bfe4136962533b04367ff4f5f3c483536c31231d.
Changes
lib/Moose/Meta/Role/Application/ToInstance.pm
t/030_roles/010_run_time_role_composition.t