From: Dave Rolsky Date: Wed, 13 Apr 2011 15:13:28 +0000 (-0500) Subject: Tweak comment X-Git-Tag: v0.14~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-StrictConstructor.git;a=commitdiff_plain;h=bf857f8277c39d208e9bd0d750e09275011a506b Tweak comment --- diff --git a/lib/MooseX/StrictConstructor/Trait/Class.pm b/lib/MooseX/StrictConstructor/Trait/Class.pm index 07f203a..776953b 100644 --- a/lib/MooseX/StrictConstructor/Trait/Class.pm +++ b/lib/MooseX/StrictConstructor/Trait/Class.pm @@ -29,16 +29,15 @@ around '_inline_BUILDALL' => sub { ); }; -# if the Object role is applied first, and then a superclass added, we just -# lost our BUILDALL modification. -after superclasses => sub -{ +# If the base class role is applied first, and then a superclass is added, we +# lose the role. +after superclasses => sub { my $self = shift; return if not @_; Moose::Util::MetaRole::apply_base_class_roles( - for => $self->name, + for => $self->name, roles => ['MooseX::StrictConstructor::Role::Object'], - ) + ); }; 1;