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:
authorFelipe Artur <felipefac@gmail.com>2017-04-04 21:19:09 +0300
committerFelipe Artur <felipefac@gmail.com>2017-04-04 21:19:09 +0300
commit251255e7ca3e1b1526041fdb1f501a884ea468e6 (patch)
treeab07de4bbfdbfe267269b50de0267357ff5c4f15 /app/models/issue.rb
parent0a4b853f2ceb0ad6c7394d1056f9139e53b38688 (diff)
Do not set closed_at to nil when issue is reopened
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 10a5d9d2a24..472796df9df 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -59,10 +59,6 @@ class Issue < ActiveRecord::Base
before_transition any => :closed do |issue|
issue.closed_at = Time.zone.now
end
-
- before_transition closed: any do |issue|
- issue.closed_at = nil
- end
end
def hook_attrs