gitlab-org--gitlab-foss/app/helpers/mattermost_helper.rb
2018-09-06 17:33:46 -07:00

9 lines
192 B
Ruby

# frozen_string_literal: true
module MattermostHelper
def mattermost_teams_options(teams)
teams.map do |team|
[team['display_name'] || team['name'], team['id']]
end
end
end