From e379a603b480a9dd56e2b5d26b656ff6d3a9d2da Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 11 Oct 2012 00:59:25 +0600 Subject: [PATCH] [refs #90] get new pull to this project --- app/controllers/projects/pull_requests_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/pull_requests_controller.rb b/app/controllers/projects/pull_requests_controller.rb index 478e230f5..6a8cc030d 100644 --- a/app/controllers/projects/pull_requests_controller.rb +++ b/app/controllers/projects/pull_requests_controller.rb @@ -144,7 +144,7 @@ class Projects::PullRequestsController < Projects::BaseController args = params[:to_project].try(:split, '/') || [] project = (args.length == 2) ? Project.find_by_owner_and_name(*args) : nil raise ActiveRecord::RecordNotFound if bang && !project - project.try(:parent) || @project + project || @project end def set_attrs