Revert "better check for if add_class_attribute is present."
[gitmo/MooseX-AlwaysCoerce.git] / lib / MooseX / AlwaysCoerce.pm
index 81a7fd3..8cb3831 100644 (file)
@@ -18,11 +18,11 @@ MooseX::AlwaysCoerce - Automatically enable coercions for Moose attributes
 
 =head1 VERSION
 
-Version 0.12
+Version 0.16
 
 =cut
 
-our $VERSION = '0.13';
+our $VERSION = '0.16';
 
 =head1 SYNOPSIS
 
@@ -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;