gitlab-org--gitlab-foss/app/helpers/mattermost_helper.rb
Luke "Jared" Bennett 2cc6485518
Improved team selection
Review changes
2017-03-05 21:05:48 +00:00

7 lines
161 B
Ruby

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