From 03a8daaeb91f7ebd3df73663e9d93e4884cf55d6 Mon Sep 17 00:00:00 2001 From: ellnix <103502144+ellnix@users.noreply.github.com> Date: Mon, 19 Feb 2024 10:30:42 +0100 Subject: [PATCH] Fix incorrect check of arrays in index settings --- lib/meilisearch-rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/meilisearch-rails.rb b/lib/meilisearch-rails.rb index 377aa1ee..1d9a298e 100644 --- a/lib/meilisearch-rails.rb +++ b/lib/meilisearch-rails.rb @@ -843,7 +843,7 @@ def meilisearch_settings_changed?(server_state, user_configuration) if user.is_a?(Hash) && server.is_a?(Hash) meilisearch_settings_changed?(server, user) elsif user.is_a?(Array) && server.is_a?(Array) - user.map(&:to_s) != server.map(&:to_s) + user.map(&:to_s).sort! != server.map(&:to_s).sort! else user.to_s != server.to_s end