gitlab-org--gitlab-foss/app/helpers/mattermost_helper.rb
2016-12-20 23:17:32 +01:00

9 lines
242 B
Ruby

module MattermostHelper
def mattermost_teams_options(teams)
teams_options = teams.map do |id, options|
[options['display_name'] || options['name'], id]
end
teams_options.compact.unshift(['Select team...', '0'])
end
end