debian-mirror-gitlab/app/helpers/mattermost_helper.rb

8 lines
161 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
module MattermostHelper
def mattermost_teams_options(teams)
teams.map do |team|
[team['display_name'] || team['name'], team['id']]
end
end
end