Commit d042257a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'case-insensetive-search' into 'master'

Case insensetive search

Fixes #1258

cc @marc
parents 4e37212a f39db7e5
...@@ -42,7 +42,7 @@ module Issuable ...@@ -42,7 +42,7 @@ module Issuable
module ClassMethods module ClassMethods
def search(query) def search(query)
where("title like :query", query: "%#{query}%") where("LOWER(title) like :query", query: "%#{query.downcase}%")
end end
def sort(method) def sort(method)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment