lib/searchkick/index.rb in searchkick-4.2.1 vs lib/searchkick/index.rb in searchkick-4.3.0
- old
+ new
@@ -182,9 +182,10 @@
# reindex
def reindex(relation, method_name, scoped:, full: false, scope: nil, **options)
refresh = options.fetch(:refresh, !scoped)
+ options.delete(:refresh)
if method_name
# update
import_scope(relation, method_name: method_name, scope: scope)
self.refresh if refresh