From b76ce8c95c53713b0e9d1232fcff987831aeffcc Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Feb 2013 23:43:35 -0500 Subject: [PATCH] make pool name search case insensitive --- app/models/pool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/pool.rb b/app/models/pool.rb index dc007cd04..06b46920f 100644 --- a/app/models/pool.rb +++ b/app/models/pool.rb @@ -26,7 +26,7 @@ class Pool < ActiveRecord::Base if params[:name_matches].present? params[:name_matches] += "*" unless params[:name_matches] =~ /\*/ - q = q.where("name like ? escape E'\\\\'", params[:name_matches].to_escaped_for_sql_like) + q = q.where("name ilike ? escape E'\\\\'", params[:name_matches].to_escaped_for_sql_like) end if params[:description_matches].present?