Method: CoreCronController#update

Defined in:
lib/app/controllers/concerns/core_cron_controller.rb

#updateObject

Update a crontab entry



31
32
33
34
35
36
37
38
# File 'lib/app/controllers/concerns/core_cron_controller.rb', line 31

def update
  authorize! :update, cron_tab
  cron_tab.update! cron_tab_params
  redirect_to index_path
rescue StandardError => error
  log_controller_error error
  render :edit
end