Beginning of dzilization
[gitmo/Moose.git] / lib / Moose / Meta / Role / Application / ToClass.pm
index cc6fcb6..6924cd3 100644 (file)
@@ -7,8 +7,6 @@ use metaclass;
 use Moose::Util  'english_list';
 use Scalar::Util 'weaken', 'blessed';
 
-our $VERSION   = '1.17';
-$VERSION = eval $VERSION;
 our $AUTHORITY = 'cpan:STEVAN';
 
 use base 'Moose::Meta::Role::Application';
@@ -129,7 +127,7 @@ sub check_required_attributes {
 
 sub apply_attributes {
     my ($self, $role, $class) = @_;
-    my $attr_metaclass = $class->attribute_metaclass;
+    my $attr_metaclass = $role->applied_attribute_metaclass;
 
     foreach my $attribute_name ($role->get_attribute_list) {
         # it if it has one already
@@ -224,14 +222,12 @@ sub apply_method_modifiers {
 
 1;
 
+# ABSTRACT: Compose a role into a class
+
 __END__
 
 =pod
 
-=head1 NAME
-
-Moose::Meta::Role::Application::ToClass - Compose a role into a class
-
 =head1 DESCRIPTION
 
 =head2 METHODS
@@ -264,18 +260,5 @@ Moose::Meta::Role::Application::ToClass - Compose a role into a class
 
 See L<Moose/BUGS> for details on reporting bugs.
 
-=head1 AUTHOR
-
-Stevan Little E<lt>stevan@iinteractive.comE<gt>
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright 2006-2010 by Infinity Interactive, Inc.
-
-L<http://www.iinteractive.com>
-
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself.
-
 =cut