summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-01 10:44:39 +0200
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-05-01 10:49:58 +0200
commit5e75d377059a78f7bb13d954fa3c1cb4ed653766 (patch)
treebdcf91108d4ee8d3a11eac2dbe141d1f91cb0926 /app/models/commit.rb
parent87f1736a7381f39e373ce5bdae2d7185b9523108 (diff)
downloadgitlab-ce-5e75d377059a78f7bb13d954fa3c1cb4ed653766.tar.gz
Use Ruby methods, not Rails' String#first
Gitaly-Ruby is not a Rails application, which made the method not exist after the vendor. This patch uses direct indexing, which has the same properties that `#first` has. Found while working on: https://gitlab.com/gitlab-org/gitaly/merge_requests/699
Diffstat (limited to 'app/models/commit.rb')
0 files changed, 0 insertions, 0 deletions