[#105] change pull request param
This commit is contained in:
parent
95beeae221
commit
613aa86e53
|
@ -42,7 +42,7 @@ class Api::V1::PullRequestsController < Api::V1::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
from_project = Project.find(pull_params[:from_project]) if pull_params.try('[]', :from_project).present?
|
from_project = Project.find(pull_params[:from_project_id]) if pull_params[:from_project_id].present?
|
||||||
from_project ||= @project
|
from_project ||= @project
|
||||||
authorize! :read, from_project
|
authorize! :read, from_project
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue