projects
/
gitmo/MooseX-AlwaysCoerce.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6f5c1d8
)
don't attempt to wrap a method from MooseX::ClassAttribute if the consuming class...
Karen Etheridge [Thu, 7 Apr 2011 16:32:31 +0000 (09:32 -0700)]
lib/MooseX/AlwaysCoerce.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/AlwaysCoerce.pm
b/lib/MooseX/AlwaysCoerce.pm
index
ff7b2c6
..
8cb3831
100644
(file)
--- a/
lib/MooseX/AlwaysCoerce.pm
+++ b/
lib/MooseX/AlwaysCoerce.pm
@@
-71,6
+71,9
@@
Use C<< coerce => 0 >> to disable a coercion explicitly.
use Moose::Role;
use Moose::Util::TypeConstraints;
+ # MooseX::ClassAttribute is not always present in the consuming class
+ sub add_class_attribute { }
+
around add_class_attribute => sub {
my $next = shift;
my $self = shift;