projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
3e31584
)
add warning for long-deprecated alias_method method in MM::Role
Dave Rolsky [Fri, 27 Mar 2009 01:21:18 +0000 (20:21 -0500)]
lib/Moose/Meta/Role.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Meta/Role.pm
b/lib/Moose/Meta/Role.pm
index
57d790a
..
0111abe
100644
(file)
--- a/
lib/Moose/Meta/Role.pm
+++ b/
lib/Moose/Meta/Role.pm
@@
-418,6
+418,8
@@
sub get_method_list {
}
sub alias_method {
+ warn "The alias_method method is deprecated. Use add_method instead.\n";
+
my $self = shift;
$self->add_method(@_);