This commit is contained in:
albert
2013-03-02 22:13:55 -05:00
parent f7a4b2e3fa
commit b874f2d73f
2 changed files with 5 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class Pool < ActiveRecord::Base
end
if params[:description_matches].present?
q = q.where("description like ? escape E'\\\\'", params[:description_matches].to_escaped_for_sql_like)
q = q.where("description like ? escape E'\\\\'", "%" + params[:description_matches].to_escaped_for_sql_like + "%")
end
if params[:creator_name].present?