Skip to content

Commit

Permalink
Merge pull request #348 from flexport/master
Browse files Browse the repository at this point in the history
Do not check attributes for disabled indexes
  • Loading branch information
julienbourdeau authored Apr 25, 2019
2 parents d389875 + 321e026 commit 360e47d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/algoliasearch-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ def algolia_must_reindex?(object)
return object.send(:algolia_dirty?) if (object.respond_to?(:algolia_dirty?))
# Loop over each index to see if a attribute used in records has changed
algolia_configurations.each do |options, settings|
next if algolia_indexing_disabled?(options)
next if options[:slave] || options[:replica]
return true if algolia_object_id_changed?(object, options)
settings.get_attribute_names(object).each do |k|
Expand Down

0 comments on commit 360e47d

Please sign in to comment.