elasticsearch-model-mongoid_extensions 0.1.2 → 0.1.3
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: 36210ad309373d7915f8a8ca863c69b31cc3e2ac
|
4
|
+
data.tar.gz: 599f88c78d247ac0adbb94591026a8035bf14112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c3f44092e0f216d805bad1b6beb34204e0820b62d15565337c9d562ec3375e854c91abb10fce8ac86776f2996561282aa09852f02640e91b24d1dbf114437c8
|
7
|
+
data.tar.gz: c2c4c95770b1cce3477ae5461a6571484faff5faf05dc6bb0a605804caf48727496007a632cc3ba071912bde1a9e7626561d7a4783c7e5cc4676c4a3e2243dae
|
@@ -59,8 +59,8 @@ module Elasticsearch
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def import(options = {}, &block)
|
62
|
-
__elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block) +
|
63
|
-
|
62
|
+
__elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block).to_i +
|
63
|
+
subclasses.sort_by(&:model_name).map { |cls| cls.import(options, &block) }.sum
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-model-mongoid_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|