summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorBen Bodenmiller <bbodenmiller@hotmail.com>2015-04-14 00:15:34 -0700
committerBen Bodenmiller <bbodenmiller@hotmail.com>2015-04-14 00:15:34 -0700
commitfb1cd0a842a71903bf54e32aed84ed43254be552 (patch)
tree497b428fc3ae82c425d1fcc7a0942bccfa32e514 /app/models
parent4ab717ea6a65beca3e069ca8590c22c49085dc8c (diff)
downloadgitlab-ce-fb1cd0a842a71903bf54e32aed84ed43254be552.tar.gz
fix stuck MR
fixes #348. related to 6487419364fa9c179e24028d85b2be10d574067f.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/merge_request.rb2
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