Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-17 02:56:23 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-18 17:00:53 +0300
commitfb72271e24663c74e6dd66e610fd1add98628648 (patch)
tree35f8efea08d81fde6bdf5f5e48c86ecbbe2e5ce4 /app/models/todo.rb
parentc29da3f8ca1d759b8cbecb91b6e0529b18cc5c85 (diff)
Use todo.done without ! in the controller to mark todo as done
Diffstat (limited to 'app/models/todo.rb')
-rw-r--r--app/models/todo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/todo.rb b/app/models/todo.rb
index b00a1b3dc7d..68263a64d5a 100644
--- a/app/models/todo.rb
+++ b/app/models/todo.rb
@@ -38,7 +38,7 @@ class Todo < ActiveRecord::Base
state_machine :state, initial: :pending do
event :done do
- transition [:pending, :done] => :done
+ transition [:pending] => :done
end
state :pending