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
Showing
Please register or sign in to comment