Skip to content
Browse files

Disable workaround for old Moose versions.

  • Loading branch information...
1 parent b54d2c8 commit ce36197c6583c3612a3e24ebfbccaa32bfdc7ad3 @rafl committed May 7, 2010
Showing with 5 additions and 10 deletions.
  1. +5 −10 lib/MooseX/Role/WithOverloading/Meta/Role.pm
View
15 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.
Something went wrong with that request. Please try again.