blob: 49ac12db832827dc1e4561be3691298aee0b2754 (
plain)
1
2
3
4
5
6
7
8
9
|
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
|