[#105] change pull request param

This commit is contained in:
Alexander Machehin 2013-07-08 23:43:49 +06:00
parent 95beeae221
commit 613aa86e53
1 changed files with 1 additions and 1 deletions

View File

@ -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