Permalink
Browse files

Made has_*_class methods lazy to fix a problem in initialization orde…

…r in

perl 5.17+
  • Loading branch information...
1 parent 454149f commit 5805cba43d9b01bba134f588cbbd4e9b11814b90 @clintongormley committed Jan 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Elastic/Model/Role/Model.pm
@@ -27,6 +27,7 @@ for my $class (@wrapped_classes) {
#===================================
isa => Str,
is => 'ro',
+ lazy => 1,
default => sub { shift->wrap_class($class) }
);
}

0 comments on commit 5805cba

Please sign in to comment.