summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard/todos_controller.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-16 20:56:23 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 11:00:53 -0300
commitfb72271e24663c74e6dd66e610fd1add98628648 (patch)
tree35f8efea08d81fde6bdf5f5e48c86ecbbe2e5ce4 /app/controllers/dashboard/todos_controller.rb
parentc29da3f8ca1d759b8cbecb91b6e0529b18cc5c85 (diff)
downloadgitlab-ce-fb72271e24663c74e6dd66e610fd1add98628648.tar.gz
Use todo.done without ! in the controller to mark todo as done
Diffstat (limited to 'app/controllers/dashboard/todos_controller.rb')
-rw-r--r--app/controllers/dashboard/todos_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard/todos_controller.rb b/app/controllers/dashboard/todos_controller.rb
index 7857af9c5de..be488483b09 100644
--- a/app/controllers/dashboard/todos_controller.rb
+++ b/app/controllers/dashboard/todos_controller.rb
@@ -6,7 +6,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
end
def destroy
- todo.done!
+ todo.done
todo_notice = 'Todo was successfully marked as done.'
@@ -20,7 +20,7 @@ class Dashboard::TodosController < Dashboard::ApplicationController
end
def destroy_all
- @todos.each(&:done!)
+ @todos.each(&:done)
respond_to do |format|
format.html { redirect_to dashboard_todos_path, notice: 'All todos were marked as done.' }