correct method call in Hash trait documentation
[gitmo/Moose.git] / lib / Moose / Meta / Attribute / Native / Trait.pm
index 9103e21..a682e53 100644 (file)
@@ -6,7 +6,7 @@ use List::MoreUtils qw( any uniq );
 use Moose::Util::TypeConstraints;
 use Moose::Deprecated;
 
-our $VERSION   = '1.16';
+our $VERSION   = '1.9900';
 $VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
@@ -45,7 +45,7 @@ before '_process_options' => sub {
             feature => 'default default for Native Trait',
             message =>
                 'Allowing a native trait to automatically supply a default is deprecated.'
-                . ' You can avoid this warning by supply a default, builder, or making the attribute required'
+                . ' You can avoid this warning by supplying a default, builder, or making the attribute required'
         );
     }
 };
@@ -169,6 +169,7 @@ sub _native_accessor_class_for {
         . $self->_native_type . '::'
         . $suffix;
 
+    Class::MOP::load_class($role);
     return Moose::Meta::Class->create_anon_class(
         superclasses =>
             [ $self->accessor_metaclass, $self->delegation_metaclass ],
@@ -224,7 +225,7 @@ Jesse Luehrs
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2007-2009 by Infinity Interactive, Inc.
+Copyright 2007-2010 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>