refactored ConferencesController#calendar: separated calendar event creation into an specific service

This commit is contained in:
Carlos Daniel Pohlod 2022-11-09 17:15:28 -03:00 committed by Henne Vogelsang
parent 6e276b2787
commit 69c06b4229
6 changed files with 249 additions and 34 deletions

View file

@ -215,7 +215,7 @@ Osem::Application.routes.draw do
get '/admin' => redirect('/admin/conferences')
get '/calendar' => 'conferences#calendar'
get '/calendar' => 'conferences#calendar', action: :calendar
if ENV.fetch('OSEM_ROOT_CONFERENCE', nil)
root to: redirect("/conferences/#{ENV.fetch('OSEM_ROOT_CONFERENCE')}")