diff options
author | Ben Bodenmiller <bbodenmiller@hotmail.com> | 2015-04-14 00:15:34 -0700 |
---|---|---|
committer | Ben Bodenmiller <bbodenmiller@hotmail.com> | 2015-04-14 00:15:34 -0700 |
commit | fb1cd0a842a71903bf54e32aed84ed43254be552 (patch) | |
tree | 497b428fc3ae82c425d1fcc7a0942bccfa32e514 /app/models | |
parent | 4ab717ea6a65beca3e069ca8590c22c49085dc8c (diff) | |
download | gitlab-ce-fb1cd0a842a71903bf54e32aed84ed43254be552.tar.gz |
fix stuck MR
fixes #348. related to 6487419364fa9c179e24028d85b2be10d574067f.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/merge_request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index 35cb920d8bc..92026356b62 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -361,6 +361,6 @@ class MergeRequest < ActiveRecord::Base end def locked_long_ago? - locked_at && locked_at < (Time.now - 1.day) + locked_at.nil? || locked_at < (Time.now - 1.day) end end |