Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adapt to the current state of the role_application_hooks branch in mo…

…ose.
  • Loading branch information...
commit b5419df39bb187cbafe65e8a06944ff549662b87 1 parent 483483b
Florian Ragwitz authored
2  lib/MooseX/Role/WithOverloading.pm
View
@@ -17,7 +17,7 @@ sub init_meta {
my $meta = Moose::Role->init_meta(%opts);
return Moose::Util::MetaRole::apply_metaclass_roles(
- for => $meta,
+ for_class => $meta,
metaclass_roles => [ MetaRole ],
application_to_class_class_roles => [ ToClass ],
application_to_role_class_roles => [ ToRole ],
2  lib/MooseX/Role/WithOverloading/Meta/Role/Application/ToRole.pm
View
@@ -12,7 +12,7 @@ around apply => sub {
return $self->$next(
$role1,
Moose::Util::MetaRole::apply_metaclass_roles(
- for => $role2,
+ for_class => $role2,
application_to_class_class_roles => [ ToClass ],
application_to_role_class_roles => [ __PACKAGE__ ],
application_to_instance_class_roles => [ ToInstance ],
2  lib/MooseX/Role/WithOverloading/Meta/Role/Composite.pm
View
@@ -11,7 +11,7 @@ use namespace::clean -except => 'meta';
around apply_params => sub {
my ($next, $self, @args) = @_;
return Moose::Util::MetaRole::apply_metaclass_roles(
- for => $self->$next(@args),
+ for_class => $self->$next(@args),
application_to_class_class_roles => [ ToClass ],
application_to_role_class_roles => [ ToRole ],
application_to_instance_class_roles => [ ToInstance ],
Please sign in to comment.
Something went wrong with that request. Please try again.