From: Dave Rolsky Date: Mon, 27 Sep 2010 17:53:02 +0000 (-0500) Subject: require Class::MOP in MiniTrait - fixes some failure cases X-Git-Tag: 1.09~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e92b2b21fa7c37268d06c977d605ce203112aebc;p=gitmo%2FClass-MOP.git require Class::MOP in MiniTrait - fixes some failure cases --- diff --git a/lib/Class/MOP/MiniTrait.pm b/lib/Class/MOP/MiniTrait.pm index 4f74ca4..c108c7c 100644 --- a/lib/Class/MOP/MiniTrait.pm +++ b/lib/Class/MOP/MiniTrait.pm @@ -27,6 +27,12 @@ sub apply { } } +# We can't load this with use, since it may be loaded and used from Class::MOP +# (via CMOP::Class, etc). However, if for some reason this module is loaded +# _without_ first loading Class::MOP we need to require Class::MOP so we can +# use it and CMOP::Class. +require Class::MOP; + 1; __END__