projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
3897e14
)
class_of for Destructor.. I wonder if this is even right
Shawn M Moore [Sat, 28 Mar 2009 20:39:17 +0000 (16:39 -0400)]
lib/Moose/Meta/Method/Destructor.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Method/Destructor.pm
b/lib/Moose/Meta/Method/Destructor.pm
index
3b24f9e
..
71eee9b
100644
(file)
--- a/
lib/Moose/Meta/Method/Destructor.pm
+++ b/
lib/Moose/Meta/Method/Destructor.pm
@@
-57,7
+57,7
@@
sub is_needed {
|| $self->throw_error(
"The is_needed method expected a metaclass object as its arugment");
- return $metaclass->meta->can('DEMOLISH');
+ return Class::MOP::class_of($metaclass)->can('DEMOLISH');
}
sub initialize_body {