Skip to content

Commit

Permalink
Disable workaround for old Moose versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed May 7, 2010
1 parent b54d2c8 commit ce36197
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/MooseX/Role/WithOverloading/Meta/Role.pm
@@ -1,19 +1,14 @@
package MooseX::Role::WithOverloading::Meta::Role;
# ABSTRACT: Roles which support overloading

use Moose ();
use Moose 0.94 ();
use Moose::Role;
use aliased 'MooseX::Role::WithOverloading::Meta::Role::Composite', 'CompositionRole';
use namespace::autoclean;

$Moose::VERSION >= 0.9301
? around composition_class_roles => sub {
my ($orig, $self) = @_;
return $self->$orig,
CompositionRole;
}
: has '+composition_class_roles' => (
default => sub { [ CompositionRole ] },
);
around composition_class_roles => sub {
my ($orig, $self) = @_;
return $self->$orig, CompositionRole;
};

1;

0 comments on commit ce36197

Please sign in to comment.