X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMethod%2FGenerate%2FDemolishAll.pm;h=3d499ccd53eff732a293ca05272929390d014c76;hb=6b90ff030fd72db106f8f5e2151f49de310ab69d;hp=0ad1f58fbbcd718930bfaa08137393eee8bbf878;hpb=f2eac33e10951b37b5d3ec6b83d81c469fcf0289;p=gitmo%2FMoo.git diff --git a/lib/Method/Generate/DemolishAll.pm b/lib/Method/Generate/DemolishAll.pm index 0ad1f58..3d499cc 100644 --- a/lib/Method/Generate/DemolishAll.pm +++ b/lib/Method/Generate/DemolishAll.pm @@ -2,6 +2,7 @@ package Method::Generate::DemolishAll; use strictures 1; use base qw(Moo::Object); +use Devel::GlobalDestruction (); use Sub::Quote; use Moo::_Utils; use B qw(perlstring); @@ -20,7 +21,7 @@ sub generate_method { local $@; require Moo::_Utils; eval { - $self->DEMOLISHALL($Moo::_Utils::_in_global_destruction); + $self->DEMOLISHALL(Devel::GlobalDestruction::in_global_destruction); }; $@; };