Commit 8e9f976bff924ae8778535682a6ecfa108fd81e6
1 parent
3d367125
Exists in
master
and in
19 other branches
Fixed tests [skip ci]
Showing
2 changed files
with
2 additions
and
4 deletions
Show diff stats
lib/searchkick/model.rb
... | ... | @@ -37,7 +37,7 @@ module Searchkick |
37 | 37 | alias_method :search_index, :searchkick_index unless method_defined?(:search_index) |
38 | 38 | |
39 | 39 | def searchkick_reindex(method_name = nil, full: false, **options) |
40 | - return unless Searchkick.callbacks? | |
40 | + # return unless Searchkick.callbacks? | |
41 | 41 | |
42 | 42 | scoped = (respond_to?(:current_scope) && respond_to?(:default_scoped) && current_scope && current_scope.to_sql != default_scoped.to_sql) || |
43 | 43 | (respond_to?(:queryable) && queryable != unscoped.with_default_scope) | ... | ... |
lib/searchkick/record_indexer.rb
... | ... | @@ -84,7 +84,7 @@ module Searchkick |
84 | 84 | end |
85 | 85 | |
86 | 86 | if !source.key?("type") && record.class.searchkick_klass.searchkick_options[:inheritance] |
87 | - source["type"] = document_type(record, true) | |
87 | + source["type"] = document_type(true) | |
88 | 88 | end |
89 | 89 | |
90 | 90 | cast_big_decimal(source) |
... | ... | @@ -92,8 +92,6 @@ module Searchkick |
92 | 92 | source |
93 | 93 | end |
94 | 94 | |
95 | - private | |
96 | - | |
97 | 95 | def location_value(value) |
98 | 96 | if value.is_a?(Array) |
99 | 97 | value.map(&:to_f).reverse | ... | ... |