projects
/
gitmo/MooseX-AlwaysCoerce.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
don't attempt to wrap a method from MooseX::ClassAttribute if the consuming class...
[gitmo/MooseX-AlwaysCoerce.git]
/
lib
/
MooseX
/
AlwaysCoerce.pm
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;