diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-05-01 10:44:39 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-05-01 10:49:58 +0200 |
commit | 5e75d377059a78f7bb13d954fa3c1cb4ed653766 (patch) | |
tree | bdcf91108d4ee8d3a11eac2dbe141d1f91cb0926 /app/models/commit.rb | |
parent | 87f1736a7381f39e373ce5bdae2d7185b9523108 (diff) | |
download | gitlab-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