From 82efbb48a62389228f1cd9257f66d27ac54545be Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 1 Mar 2018 16:38:28 -0800 Subject: [PATCH] No association updates either --- lib/searchkick/model.rb | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/searchkick/model.rb b/lib/searchkick/model.rb index b4dbfcd..5618751 100644 --- a/lib/searchkick/model.rb +++ b/lib/searchkick/model.rb @@ -37,6 +37,8 @@ module Searchkick alias_method :search_index, :searchkick_index unless method_defined?(:search_index) def searchkick_reindex(method_name = nil, full: false, **options) + return unless Searchkick.callbacks? + scoped = (respond_to?(:current_scope) && respond_to?(:default_scoped) && current_scope && current_scope.to_sql != default_scoped.to_sql) || (respond_to?(:queryable) && queryable != unscoped.with_default_scope) -- libgit2 0.21.0