Merge branch 'master' into fixes/api

This commit is contained in:
Sebastian Ziebell 2013-02-27 17:52:59 +01:00
commit 3bb342b961
4 changed files with 31 additions and 28 deletions

View file

@ -177,15 +177,8 @@ class MergeRequest < ActiveRecord::Base
end
def merge!(user_id)
self.author_id_of_changes = user_id
self.merge
Event.create(
project: self.project,
action: Event::MERGED,
target_id: self.id,
target_type: "MergeRequest",
author_id: user_id
)
end
def automerge!(current_user)