Merge branch 'zj-fix-index-rails' into 'master'

Use Ruby methods, not Rails' String#first

See merge request gitlab-org/gitlab-ce!18669
This commit is contained in:
Douwe Maan 2018-05-01 10:16:18 +00:00
commit 3fcb9c115d
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ module Gitlab
end end
def extract_operation def extract_operation
case @raw_operation&.first(1) return :unknown unless @raw_operation
case @raw_operation[0]
when 'A' when 'A'
:added :added
when 'C' when 'C'