Mercurial > hg > soundsoftware-site
comparison app/controllers/sys_controller.rb @ 942:bb4f99a30aee live
Ensure external repo details are passed through WS interface
author | Chris Cannam |
---|---|
date | Wed, 11 Jul 2012 15:45:00 +0100 |
parents | 5e80956cc792 |
children | bb32da3bea34 |
comparison
equal
deleted
inserted
replaced
941:6d4cafba9468 | 942:bb4f99a30aee |
---|---|
19 before_filter :check_enabled | 19 before_filter :check_enabled |
20 | 20 |
21 def projects | 21 def projects |
22 p = Project.active.has_module(:repository).find(:all, :include => :repository, :order => 'identifier') | 22 p = Project.active.has_module(:repository).find(:all, :include => :repository, :order => 'identifier') |
23 # extra_info attribute from repository breaks activeresource client | 23 # extra_info attribute from repository breaks activeresource client |
24 render :xml => p.to_xml(:only => [:id, :identifier, :name, :is_public, :status], :include => {:repository => {:only => [:id, :url]}}) | 24 render :xml => p.to_xml(:only => [:id, :identifier, :name, :is_public, :status], :include => {:repository => {:only => [:id, :url, :is_external, :external_url]}}) |
25 end | 25 end |
26 | 26 |
27 def create_project_repository | 27 def create_project_repository |
28 project = Project.find(params[:id]) | 28 project = Project.find(params[:id]) |
29 if project.repository | 29 if project.repository |