merge_request: coerce work_in_progress? into a boolean

This commit is contained in:
Ben Boeckel 2015-09-30 17:12:33 -04:00
parent a2374758e3
commit 380392212f

View file

@ -227,7 +227,7 @@ class MergeRequest < ActiveRecord::Base
end
def work_in_progress?
title =~ /\A\[?WIP\]?:? /i
!!(title =~ /\A\[?WIP\]?:? /i)
end
def mergeable?