Users may delete all tasks of a group, i.e. delete the whole group.
This commit is contained in:
parent
71d8f9bde7
commit
4037ef12da
5 changed files with 22 additions and 1 deletions
8
app/controllers/periodic_task_groups_controller.rb
Normal file
8
app/controllers/periodic_task_groups_controller.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class PeriodicTaskGroupsController < ApplicationController
|
||||
def destroy
|
||||
@task_group = PeriodicTaskGroup.find(params[:id])
|
||||
@task_group.destroy
|
||||
|
||||
redirect_to tasks_url, notice: I18n.t('periodic_task_groups.destroy.notice')
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue