We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nil
1 parent 168b217 commit 3e08295Copy full SHA for 3e08295
elasticsearch-model/lib/elasticsearch/model/multimodel.rb
@@ -85,7 +85,7 @@ def index_name
85
# @return [Array] the list of document types used for retrieving documents
86
#
87
def document_type
88
- models.map { |m| m.document_type }
+ models.map { |m| m.document_type }.compact.presence
89
end
90
91
# Get the client common for all models
0 commit comments