index-tanked 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,7 +65,10 @@ module IndexTanked
65
65
  documents.inject({}) do |partitioned_documents, document_record|
66
66
  companion_key = get_or_update_index_information(document_record.model_name)[:companion_key]
67
67
  partitioned_documents[companion_key] ||= []
68
- partitioned_documents[companion_key] << document_record.document
68
+ #document may be a hash or an array of hashes due for single table inheritence ancestors
69
+ [document_record.document].flatten.each do |document_to_index|
70
+ partitioned_documents[companion_key] << document_to_index
71
+ end
69
72
  partitioned_documents
70
73
  end
71
74
  end
@@ -1,3 +1,3 @@
1
1
  module IndexTanked
2
- GEM_VERSION = '0.2.3'
2
+ GEM_VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index-tanked
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Kittelson