diff options
Diffstat (limited to 'app/controllers/dashboard/tasks_controller.rb')
-rw-r--r-- | app/controllers/dashboard/tasks_controller.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/controllers/dashboard/tasks_controller.rb b/app/controllers/dashboard/tasks_controller.rb deleted file mode 100644 index a8884be54e4..00000000000 --- a/app/controllers/dashboard/tasks_controller.rb +++ /dev/null @@ -1,21 +0,0 @@ -class Dashboard::TasksController < Dashboard::ApplicationController - def index - @tasks = TasksFinder.new(current_user, params).execute - @tasks = @tasks.page(params[:page]).per(PER_PAGE) - end - - def destroy - task.done! - - respond_to do |format| - format.html { redirect_to dashboard_tasks_path, notice: 'Task was successfully marked as done.' } - format.js { render nothing: true } - end - end - - private - - def task - @task ||= current_user.tasks.find(params[:id]) - end -end |