17 lines
371 B
Ruby
17 lines
371 B
Ruby
module BroadcastConferencesHelper
|
|
def options_for_conference_select
|
|
[
|
|
['Zoom', 'zoom'],
|
|
['MS Teams', 'ms_teams']
|
|
]
|
|
end
|
|
|
|
def conference_option_name_from_key(key)
|
|
option = options_for_conference_select.find { |option| option[1] == key }
|
|
if option.present?
|
|
option.first
|
|
else
|
|
'Unknown conference option'
|
|
end
|
|
end
|
|
end |