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: fdacb9b2813cbdf61813171273ec16c3626a40cd
4
- data.tar.gz: a47ded66adef66a3ac2cba15e802ee5443ed50f1
3
+ metadata.gz: 391098b48433332f19ef9836bd8e49dd95dbbcf1
4
+ data.tar.gz: f2c5d5ff94939acf9455c13816cee7136ff8355e
5
5
  SHA512:
6
- metadata.gz: d2373b26f5f54d52b89ad22270cf7e076cafd31eea7f69042f0cf695fda8bfb3676d89be631c6f649819dbe17698ee8d7053e55dc1f263b143b8a9cd72333bec
7
- data.tar.gz: b354472253b3a6b61501aaecf67afc31cd69e99a6b3ce4b6e1651153c7ab09b2e4780444c98da1a944351a4171fe02b21e3a8967d95a07a39674ddb95381ed60
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
 
@@ -1,7 +1,7 @@
1
1
  module Elasticsearch
2
2
  module Model
3
3
  module Extensions
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-model-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yusuke KUOKA