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

Commit 3c8e052

Browse files
miguelffkarmi
authored andcommitted
[MODEL] Revert multiple_adapter to lookup over Registry instead of models reader
Related: #10, #30, #50, #129, #346
1 parent 1d71fba commit 3c8e052

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-model/lib/elasticsearch/model/adapters

1 file changed

+1
-1
lines changed

‎elasticsearch-model/lib/elasticsearch/model/adapters/multiple.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __ids_by_type
110110
def __type(hit)
111111
@@__types ||= {}
112112
@@__types[[hit[:_index], hit[:_type]].join("::")] ||= begin
113-
models.detect { |model| model.index_name == hit[:_index] && model.document_type == hit[:_type] }
113+
Registry.all.detect { |model| model.index_name == hit[:_index] && model.document_type == hit[:_type] }
114114
end
115115
end
116116

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /