Skip to content

Commit

Permalink
Updated comment [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 20, 2020
1 parent 039c5d2 commit 7368fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/searchkick/model.rb
Expand Up @@ -57,7 +57,7 @@ def searchkick_index(name: nil)
alias_method :search_index, :searchkick_index unless method_defined?(:search_index)

def searchkick_reindex(method_name = nil, **options)
# TODO use Searchkick.relation?
# TODO relation = Searchkick.relation?(self)
relation = (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)

Expand Down

0 comments on commit 7368fe1

Please sign in to comment.