Commit d042257a39924e3205a7bacec1ca711f92fdf05e

Authored by Dmitriy Zaporozhets
2 parents 4e37212a f39db7e5

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

Case insensetive search

Fixes #1258

cc @marc
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/concerns/issuable.rb
@@ -42,7 +42,7 @@ module Issuable @@ -42,7 +42,7 @@ module Issuable
42 42
43 module ClassMethods 43 module ClassMethods
44 def search(query) 44 def search(query)
45 - where("title like :query", query: "%#{query}%") 45 + where("LOWER(title) like :query", query: "%#{query.downcase}%")
46 end 46 end
47 47
48 def sort(method) 48 def sort(method)