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

8 lines
161 B
Ruby
Raw Normal View History

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