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