projects
/
gitmo/Role-Tiny.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Check $INFO{$role}{is_role} in ->is_role
[gitmo/Role-Tiny.git]
/
lib
/
Role
/
Tiny.pm
diff --git
a/lib/Role/Tiny.pm
b/lib/Role/Tiny.pm
index
86941c1
..
a628cc7
100644
(file)
--- a/
lib/Role/Tiny.pm
+++ b/
lib/Role/Tiny.pm
@@
-418,7
+418,7
@@
sub does_role {
sub is_role {
my ($me, $role) = @_;
- return !!$INFO{$role};
+ return !!($INFO{$role} && $INFO{$role}{is_role});
}
1;