Fix error with reopened merge request not properly reloading

If you reopen a Merge Request and then try to update the source branch
it won't properly reload the code since the "reload_code" method still
checks if the MR is "opened" and not just "open" (which includes reopened)
This commit is contained in:
Daniel Cestari 2014-03-11 17:20:02 -04:30 committed by Dmitriy Zaporozhets
parent a599d8120d
commit 55fbe71ad1

View file

@ -133,7 +133,7 @@ class MergeRequest < ActiveRecord::Base
end end
def reload_code def reload_code
if merge_request_diff && opened? if merge_request_diff && open?
merge_request_diff.reload_content merge_request_diff.reload_content
end end
end end