Revision history for MooseX-Object-Pluggable
+
+ - removed use of deprecated Class::MOP::load_class
+
0.0011 Apr 27, 2009
Version number FAIL on last release
use Carp;
use Moose::Role;
-use Class::MOP;
+use Class::Load 'load_class';
use Scalar::Util 'blessed';
use Module::Pluggable::Object;
die("You must provide a role name") unless @roles;
foreach my $role ( @roles ) {
- eval { Class::MOP::load_class($role) };
+ eval { load_class($role) };
confess("Failed to load role: ${role} $@") if $@;
carp("Using 'override' is strongly discouraged and may not behave ".