From 1bb4bd093cf2103ac079609653c6307a371e08ad Mon Sep 17 00:00:00 2001 From: Alicia Date: Wed, 13 Mar 2024 17:30:33 -0600 Subject: [PATCH] Downcase suggestions --- app/controllers/autocomplete_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/autocomplete_controller.rb b/app/controllers/autocomplete_controller.rb index 81b2cc00f..0da434f05 100644 --- a/app/controllers/autocomplete_controller.rb +++ b/app/controllers/autocomplete_controller.rb @@ -8,7 +8,7 @@ class AutocompleteController < ApplicationController def index @suggestions = PgSearch.multisearch(params[:q]).map do |record| - record.searchable.name + record.searchable.name.downcase end.uniq render layout: false