Fix bug in MergeRequest#mark_as_unmergable
This commit is contained in:
parent
122769e358
commit
d4e3664067
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ class MergeRequest < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def mark_as_unmergable
|
||||
self.update_attributes state: CANNOT_BE_MERGED
|
||||
self.state = CANNOT_BE_MERGED
|
||||
self.save
|
||||
end
|
||||
|
||||
def reloaded_commits
|
||||
|
|
Loading…
Reference in a new issue