We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nil
1 parent 756a4da commit cd9c309Copy full SHA for cd9c309
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