summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/dashboard/tasks_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/dashboard/tasks_controller.rb b/app/controllers/dashboard/tasks_controller.rb
index d5f835babdc..e3245609204 100644
--- a/app/controllers/dashboard/tasks_controller.rb
+++ b/app/controllers/dashboard/tasks_controller.rb
@@ -1,11 +1,11 @@
class Dashboard::TasksController < Dashboard::ApplicationController
def index
@tasks = case params[:state]
- when 'done'
- current_user.tasks.done
- else
- current_user.tasks.pending
- end
+ when 'done'
+ current_user.tasks.done
+ else
+ current_user.tasks.pending
+ end
@tasks = @tasks.page(params[:page]).per(PER_PAGE)
end