Commit b65a65868ca0ec4bf8790dbb2caad35c2971c4f8
1 parent
db0816c0
Exists in
master
and in
18 other branches
Fixed index cache [skip ci]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/model.rb
... | ... | @@ -48,7 +48,7 @@ module Searchkick |
48 | 48 | index = class_variable_get(:@@searchkick_index) |
49 | 49 | index = index.call if index.respond_to?(:call) |
50 | 50 | index_cache = class_variable_get(:@@searchkick_index_cache) |
51 | - index_cache[name] ||= Searchkick::Index.new(index, searchkick_options) | |
51 | + index_cache[index] ||= Searchkick::Index.new(index, searchkick_options) | |
52 | 52 | end |
53 | 53 | alias_method :search_index, :searchkick_index unless method_defined?(:search_index) |
54 | 54 | ... | ... |