REVIEW: old way won't work since active relation's find method is called when nesting objects like that

pull/1186/head
Martin Linkhorst 12 years ago
parent 439258c8b1
commit cd80f05238
  1. 2
      app/controllers/sys_controller.rb

@ -38,7 +38,7 @@ class SysController < ActionController::Base
def fetch_changesets def fetch_changesets
projects = [] projects = []
if params[:id] if params[:id]
projects << Project.active.has_module(:repository).find(params[:id]) projects << Project.active.has_module(:repository).find_by_identifier!(params[:id])
else else
projects = Project.active.has_module(:repository).find(:all, :include => :repository) projects = Project.active.has_module(:repository).find(:all, :include => :repository)
end end

Loading…
Cancel
Save