Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions lib/meilisearch-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -765,19 +765,6 @@ def ms_must_reindex?(document)
return true if ms_attribute_changed?(document, k)
# return true if !document.respond_to?(changed_method) || document.send(changed_method)
end
[options[:if], options[:unless]].each do |condition|
case condition
when nil
return false
when String, Symbol
return true if ms_attribute_changed?(document, condition)
else
# if the :if, :unless condition is a anything else,
# we have no idea whether we should reindex or not
# let's always reindex then
return true
end
end
end

# By default, we don't reindex
Expand Down