elasticsearch-model-extensions 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 391098b48433332f19ef9836bd8e49dd95dbbcf1
|
4
|
+
data.tar.gz: f2c5d5ff94939acf9455c13816cee7136ff8355e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aba8b1b0a198b56f8922561bfc9f0b2fae188385e12d4d78636ce842e2129aecf314667081ec27d4f3ccb99e01f5feb57b8a2df0bd8b0e6b4334708d2c303deb
|
7
|
+
data.tar.gz: a60735a7d26bf1e287e393bb0b1177d7f886df09b366d854b3954729db793240b3820558c66634798539803116c20dfd95a77c7133ee9f8a011c0c7c4b96ed42
|
@@ -89,7 +89,7 @@ module Elasticsearch
|
|
89
89
|
|
90
90
|
@nested_object_fields = @parent_class.__mapping_reflector__.nested_object_fields_for(parent_to_child_path).map(&:to_s)
|
91
91
|
@has_dependent_fields = @parent_class.__dependency_tracker__.has_dependent_fields?(field_to_update) ||
|
92
|
-
(path.first.destination.through_class == child_class && @parent_class.__dependency_tracker__.has_association_named?(field_to_update) && @parent_class.__mapping_reflector__.has_document_field_named?(field_to_update))
|
92
|
+
(path && path.first.destination.through_class == child_class && @parent_class.__dependency_tracker__.has_association_named?(field_to_update) && @parent_class.__mapping_reflector__.has_document_field_named?(field_to_update))
|
93
93
|
|
94
94
|
custom_if = @if
|
95
95
|
|