Use select instead of filter to support 2.5
This MR fixes the problem appeared on Ruby 2.5 https://gitlab.com/gitlab-org/gitlab-ce/issues/64143#note_200185348 and uses select method instead of filter to provide backward compatibility
This MR fixes the problem appeared on Ruby 2.5 https://gitlab.com/gitlab-org/gitlab-ce/issues/64143#note_200185348 and uses select method instead of filter to provide backward compatibility