Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix bug in TypeMap::Base::find_inflator

  • Loading branch information...
commit 78a72006b831a715006a5850d11b2192b7387a60 1 parent 56dc06d
@clintongormley authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Elastic/Model/TypeMap/Base.pm
View
2  lib/Elastic/Model/TypeMap/Base.pm
@@ -57,7 +57,7 @@ sub find_deflator {
sub find_inflator {
#===================================
my ( $map, $attr ) = @_;
- $attr->can('inflator') && $attr->deflator
+ $attr->can('inflator') && $attr->inflator
|| eval { $map->find( 'inflator', $attr->type_constraint, $attr ) }
|| die _type_error( 'inflator', $attr, $@ );
}
Please sign in to comment.
Something went wrong with that request. Please try again.