Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd9c309

Browse files
catwellpicandocodigo
authored andcommitted
deal withnil document types in Multimodel
1 parent756a4da commitcd9c309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎elasticsearch-model/lib/elasticsearch/model/multimodel.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def index_name
8585
# @return [Array] the list of document types used for retrieving documents
8686
#
8787
defdocument_type
88-
models.map{ |m|m.document_type}
88+
models.map{ |m|m.document_type}.compact.presence
8989
end
9090

9191
# Get the client common for all models

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp