From: Matt S Trout Date: Fri, 4 May 2012 20:31:06 +0000 (+0000) Subject: load Moo::sification in Moo::Role too X-Git-Tag: v0.091002~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a047096b74a1823ee7920ea40d989c17d5432e06;p=gitmo%2FMoo.git load Moo::sification in Moo::Role too --- diff --git a/Changes b/Changes index e29d48c..0055a6b 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,4 @@ + - enable Moo::sification if only Moo::Role is loaded and not Moo - preserve attribute ordering - factor out accessor generation code a bit more to enable extension diff --git a/lib/Moo/Role.pm b/lib/Moo/Role.pm index d84a5fd..72f3808 100644 --- a/lib/Moo/Role.pm +++ b/lib/Moo/Role.pm @@ -4,6 +4,8 @@ use strictures 1; use Moo::_Utils; use base qw(Role::Tiny); +require Moo::sification; + BEGIN { *INFO = \%Role::Tiny::INFO } our %INFO;