Skip to content

Commit 360e47d

Browse files
Merge pull request #348 from flexport/master
Do not check attributes for disabled indexes
2 parents d389875 + 321e026 commit 360e47d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/algoliasearch-rails.rb

+1
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ def algolia_must_reindex?(object)
743743
return object.send(:algolia_dirty?) if (object.respond_to?(:algolia_dirty?))
744744
# Loop over each index to see if a attribute used in records has changed
745745
algolia_configurations.each do |options, settings|
746+
next if algolia_indexing_disabled?(options)
746747
next if options[:slave] || options[:replica]
747748
return true if algolia_object_id_changed?(object, options)
748749
settings.get_attribute_names(object).each do |k|

0 commit comments

Comments
 (0)