From: Shawn M Moore Date: Sun, 16 Dec 2007 19:21:05 +0000 (+0000) Subject: Don't use the instance method directly from Object -- use meta->construct_instance X-Git-Tag: 0.09_02~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=682139099536421166cdf30d55f95675ef7f18ca;p=gitmo%2FMooseX-Singleton.git Don't use the instance method directly from Object -- use meta->construct_instance --- diff --git a/lib/MooseX/Singleton/Meta/Instance.pm b/lib/MooseX/Singleton/Meta/Instance.pm index b78953c..c0dbc91 100644 --- a/lib/MooseX/Singleton/Meta/Instance.pm +++ b/lib/MooseX/Singleton/Meta/Instance.pm @@ -16,7 +16,7 @@ sub get_singleton_instance { no strict 'refs'; return ${"$instance\::singleton"} if defined ${"$instance\::singleton"}; - return $instance->instance; + return $instance->meta->construct_instance; } sub clone_instance {