summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-02-28 10:45:39 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-02-28 10:45:39 +0000
commitcd92c84b5617970ee4b143687120668c6efa4a72 (patch)
tree6530275060c588cc67ee39280d12be510a688f39 /app/models
parent7733f285aca97d444382a59eda0ea3e303539c26 (diff)
parent2da8bc3de9f8b63bd80a081c7e2880adee3edb71 (diff)
downloadgitlab-ce-cd92c84b5617970ee4b143687120668c6efa4a72.tar.gz
Merge branch 'only-create-unmergeable-todo-once' into 'master'
Only create unmergeable todos once Closes #28555 See merge request !9513
Diffstat (limited to 'app/models')
-rw-r--r--app/models/merge_request.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index 7eb875f1ef5..d6e7ed87555 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -91,10 +91,6 @@ class MergeRequest < ActiveRecord::Base
around_transition do |merge_request, transition, block|
Gitlab::Timeless.timeless(merge_request, &block)
end
-
- after_transition unchecked: :cannot_be_merged do |merge_request, transition|
- TodoService.new.merge_request_became_unmergeable(merge_request)
- end
end
validates :source_project, presence: true, unless: [:allow_broken, :importing?, :closed_without_fork?]