BigW Consortium Gitlab

Commit 3fcb9c11 by Douwe Maan

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

Use Ruby methods, not Rails' String#first See merge request gitlab-org/gitlab-ce!18669
parents c0991321 5e75d377
......@@ -38,7 +38,9 @@ module Gitlab
end
def extract_operation
case @raw_operation&.first(1)
return :unknown unless @raw_operation
case @raw_operation[0]
when 'A'
:added
when 'C'
......
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