lib/meilisearch-rails.rb in meilisearch-rails-0.5.1 vs lib/meilisearch-rails.rb in meilisearch-rails-0.5.2
- old
+ new
@@ -672,9 +672,10 @@
# 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