Permalink
Browse files

Fixed a bug in the default values for wrapper/multi_wrapper in

Elastic::Model::Role::Iterator

Closes #17
  • Loading branch information...
1 parent 99014e1 commit 866d27f67172726252b7bbb00d82a65e37eebd9a @clintongormley committed Nov 2, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/Elastic/Model/Role/Iterator.pm
View
8 lib/Elastic/Model/Role/Iterator.pm
@@ -37,7 +37,9 @@ has 'wrapper' => (
isa => CodeRef,
is => 'rw',
lazy => 1,
- default => sub { shift() },
+ default => sub {
+ sub { shift() }
+ },
);
#===================================
@@ -46,7 +48,9 @@ has 'multi_wrapper' => (
isa => CodeRef,
is => 'rw',
lazy => 1,
- default => sub {@_},
+ default => sub {
+ sub {@_}
+ },
);
#===================================

0 comments on commit 866d27f

Please sign in to comment.