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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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