lib/Moo/HandleMoose.pm: Fix for rt#84615
authorKent Fredric <kentfredric@gmail.com>
Tue, 23 Apr 2013 21:11:21 +0000 (09:11 +1200)
committerMatt S Trout <mst@shadowcat.co.uk>
Sat, 4 May 2013 18:42:09 +0000 (18:42 +0000)
commit5d20f26c05ae145f3f3cfa6b2d8486e5b2f70f29
treebaa7ec0a2366fc4e1e50e54b51274a8f94be90b5
parentf1bad247e7bea8015d4d57f66c7e033b52d513a4
lib/Moo/HandleMoose.pm: Fix for rt#84615

If the constructor autovivification call returns 'undef', then the
package we're trying to get the contructor for, ( and from that, the
    constructor specs ), that package was not constructed via

  package;
  use Moo;

doesn't turn up in %Moo::MAKERS, and must either be either Moose::Object itself, or a simple child class of
that.

Therefore, assume it has no attributes, and inflate a minimal
methods-only metaclass.
Changes
lib/Moo/HandleMoose.pm