From 6d838c31eef74b0276c0599e0452ad264fbcc815 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 20 Feb 2022 16:16:40 -0800 Subject: [PATCH] Added comment [skip ci] --- lib/searchkick/model.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/lib/searchkick/model.rb b/lib/searchkick/model.rb index a4be03d..a27fb55 100644 --- a/lib/searchkick/model.rb +++ b/lib/searchkick/model.rb @@ -78,6 +78,7 @@ module Searchkick def searchkick_reindex(method_name = nil, **options) scoped = Searchkick.relation?(self) + # call searchkick_klass for inheritance relation = scoped ? all : searchkick_klass.all # prevent scope from affecting search_data unscoped do -- libgit2 0.21.0