From cd80f05238d4593021e287d5107c63e38d9cab87 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Mon, 6 Aug 2012 17:27:12 +0200 Subject: [PATCH] REVIEW: old way won't work since active relation's find method is called when nesting objects like that --- app/controllers/sys_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/sys_controller.rb b/app/controllers/sys_controller.rb index 3fce4da0d2..4744a818fc 100644 --- a/app/controllers/sys_controller.rb +++ b/app/controllers/sys_controller.rb @@ -38,7 +38,7 @@ class SysController < ActionController::Base def fetch_changesets projects = [] if params[:id] - projects << Project.active.has_module(:repository).find(params[:id]) + projects << Project.active.has_module(:repository).find_by_identifier!(params[:id]) else projects = Project.active.has_module(:repository).find(:all, :include => :repository) end