diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-04-04 21:19:09 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-04-04 21:19:09 +0300 |
commit | 251255e7ca3e1b1526041fdb1f501a884ea468e6 (patch) | |
tree | ab07de4bbfdbfe267269b50de0267357ff5c4f15 /app/models/issue.rb | |
parent | 0a4b853f2ceb0ad6c7394d1056f9139e53b38688 (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.rb | 4 |
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 |