projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c5d71e5
)
We also need to explicitly ignore meta when applying a role to a class
Dave Rolsky [Mon, 14 Sep 2009 21:07:27 +0000 (16:07 -0500)]
lib/Moose/Meta/Role/Application/ToClass.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Role/Application/ToClass.pm
b/lib/Moose/Meta/Role/Application/ToClass.pm
index
3c38156
..
ec7aa8e
100644
(file)
--- a/
lib/Moose/Meta/Role/Application/ToClass.pm
+++ b/
lib/Moose/Meta/Role/Application/ToClass.pm
@@
-148,6
+148,7
@@
sub apply_attributes {
sub apply_methods {
my ($self, $role, $class) = @_;
foreach my $method_name ($role->get_method_list) {
+ next if $method_name eq 'meta';
unless ($self->is_method_excluded($method_name)) {
# it if it has one already