[refs #90] get new pull to this project

This commit is contained in:
Alexander Machehin 2012-10-11 00:59:25 +06:00
parent f153abf531
commit e379a603b4
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class Projects::PullRequestsController < Projects::BaseController
args = params[:to_project].try(:split, '/') || [] args = params[:to_project].try(:split, '/') || []
project = (args.length == 2) ? Project.find_by_owner_and_name(*args) : nil project = (args.length == 2) ? Project.find_by_owner_and_name(*args) : nil
raise ActiveRecord::RecordNotFound if bang && !project raise ActiveRecord::RecordNotFound if bang && !project
project.try(:parent) || @project project || @project
end end
def set_attrs def set_attrs