Module: MattermostHelper

Defined in:
app/helpers/mattermost_helper.rb

Instance Method Summary collapse

Instance Method Details

#mattermost_teams_options(teams) ⇒ Object


4
5
6
7
8
# File 'app/helpers/mattermost_helper.rb', line 4

def mattermost_teams_options(teams)
  teams.map do |team|
    [team['display_name'] || team['name'], team['id']]
  end
end