Add another MOOSE_TEST_MD option, MooseX
[gitmo/Moose.git] / lib / metaclass.pm
index 16ba5c9..a41c2fe 100644 (file)
@@ -5,11 +5,10 @@ use strict;
 use warnings;
 
 use Carp         'confess';
+use Class::Load  'load_class';
 use Scalar::Util 'blessed';
 use Try::Tiny;
 
-our $AUTHORITY = 'cpan:STEVAN';
-
 use Class::MOP;
 
 sub import {
@@ -24,7 +23,7 @@ sub import {
     unless ( defined $metaclass ) {
         $metaclass = "Class::MOP::Class";
     } else {
-        Class::MOP::load_class($metaclass);
+        load_class($metaclass);
     }
 
     ($metaclass->isa('Class::MOP::Class'))
@@ -33,7 +32,7 @@ sub import {
     # make sure the custom metaclasses get loaded
     foreach my $key (grep { /_(?:meta)?class$/ } keys %options) {
         unless ( ref( my $class = $options{$key} ) ) {
-            Class::MOP::load_class($class)
+            load_class($class)
         }
     }
 
@@ -91,4 +90,7 @@ and a set of custom attribute and method metaclasses. It also
 installs a C<meta> method to your class as well, unless C<undef>
 is passed to the C<meta_name> option.
 
+Note that if you are using Moose, you most likely do B<not> want
+to be using this - look into L<Moose::Util::MetaRole> instead.
+
 =cut