gitlab-org--gitlab-foss/app/helpers/mattermost_helper.rb

10 lines
192 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-12-20 17:17:32 -05:00
module MattermostHelper
def mattermost_teams_options(teams)
2017-02-15 08:49:14 -05:00
teams.map do |team|
[team['display_name'] || team['name'], team['id']]
2016-12-20 17:17:32 -05:00
end
end
end