toptal / chewy

High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
MIT License
1.89k stars 368 forks source link

Fix nil children when using witchcraft #736

Closed TaylorMerritt closed 3 years ago

TaylorMerritt commented 3 years ago

The functionality of Chewy without witchcraft enabled simply nulls out any children fields where the child is null. With witchcraft enabled, Chewy will try to traverse objects even when a child is null. Code change addresses this issue.

rabotyaga commented 3 years ago

Thanks, @taylor-au !

TaylorMerritt commented 3 years ago

@rabotyaga No problem, thanks for the great library!