Commit d4e36640 authored by Riyad Preukschas's avatar Riyad Preukschas

Fix bug in MergeRequest#mark_as_unmergable

parent 122769e3
...@@ -135,7 +135,8 @@ class MergeRequest < ActiveRecord::Base ...@@ -135,7 +135,8 @@ class MergeRequest < ActiveRecord::Base
end end
def mark_as_unmergable def mark_as_unmergable
self.update_attributes state: CANNOT_BE_MERGED self.state = CANNOT_BE_MERGED
self.save
end end
def reloaded_commits def reloaded_commits
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment