From: Dave Rolsky Date: Mon, 26 Apr 2010 17:32:55 +0000 (-0500) Subject: Sigh, and one more place to use _real_ref_name X-Git-Tag: 1.02~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a1e133e4a04cffe9bbcc6b859977081cbb809689;p=gitmo%2FClass-MOP.git Sigh, and one more place to use _real_ref_name --- diff --git a/lib/Class/MOP/Class.pm b/lib/Class/MOP/Class.pm index 325c913..7543a4a 100644 --- a/lib/Class/MOP/Class.pm +++ b/lib/Class/MOP/Class.pm @@ -1153,10 +1153,7 @@ sub _immutable_metaclass { # metaclass roles applied (via Moose), then we want to make sure # that we preserve that anonymous class (see Fey::ORM for an # example of where this matters). - my $meta_name - = $meta->is_immutable - ? $meta->_get_mutable_metaclass_name - : ref $meta; + my $meta_name = $meta->_real_ref_name; my $immutable_meta = $meta_name->create( $class_name,