Skip to content

Commit

Permalink
Adapt to MooseX::Role::Parameterized changes
Browse files Browse the repository at this point in the history
It now seems to provide the C<< is => 'ro' >> default in the exported sugar
instead of in add_parameter.
  • Loading branch information
rafl committed Aug 23, 2011
1 parent 4d7ab34 commit 8aaffb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MooseX/Declare/Syntax/Keyword/Role.pm
Expand Up @@ -128,6 +128,7 @@ sub add_parameterized_customizations {

for my $var (@vars) {
$ctx->add_parameter($var->{name} => {
is => 'ro',
isa => $var->{tc},
(exists $var->{default}
? (default => sub { eval $var->{default} })
Expand Down

0 comments on commit 8aaffb0

Please sign in to comment.