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

10 lines
242 B
Ruby
Raw Normal View History

2016-12-20 17:17:32 -05:00
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