diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-03 19:19:59 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-03 19:19:59 +0400 |
commit | d042257a39924e3205a7bacec1ca711f92fdf05e (patch) | |
tree | 0d744936b38ba42f30a1637ec137228b05e26576 | |
parent | 4e37212a8c3e8183c85b6d6ebbdddff39e19d2be (diff) | |
parent | f39db7e5ed2712244a3ddfd3b36e5a74a53a8cc8 (diff) |
Merge branch 'case-insensetive-search' into 'master'
Case insensetive search
Fixes #1258
cc @marc
-rw-r--r-- | app/models/concerns/issuable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/issuable.rb b/app/models/concerns/issuable.rb index de167f8803a..713eab5ad7d 100644 --- a/app/models/concerns/issuable.rb +++ b/app/models/concerns/issuable.rb @@ -42,7 +42,7 @@ module Issuable module ClassMethods def search(query) - where("title like :query", query: "%#{query}%") + where("LOWER(title) like :query", query: "%#{query.downcase}%") end def sort(method) |