Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make sync opt to be selectable for auto setting update logic #425

3 changes: 2 additions & 1 deletion lib/algoliasearch-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,8 @@ def algolia_ensure_init(options = nil, settings = nil, index_settings = nil)
replicas = index_settings.delete(:replicas) ||
index_settings.delete('replicas')
index_settings[:replicas] = replicas unless replicas.nil? || options[:inherit]
@algolia_indexes[settings].set_settings!(index_settings)
set_settings_method = options[:synchronous] ? :set_settings! : :set_settings
@algolia_indexes[settings].send(set_settings_method, index_settings)
end

@algolia_indexes[settings]
Expand Down