Changes after review

This commit is contained in:
Valeriy Sizov 2012-10-22 21:59:46 +03:00
parent 93e8d426c5
commit 6ffd2f3db6

View file

@ -1,5 +1,5 @@
module Gitlab
# Issues API
# MergeRequest API
class MergeRequests < Grape::API
before { authenticate! }
@ -26,7 +26,7 @@ module Gitlab
merge_request = user_project.merge_requests.new(attrs)
merge_request.author = current_user
authorize! :write_merge_request, merge_request
authorize! :write_merge_request, user_project
if merge_request.save
merge_request.reload_code