Revision 956:fa2a1b6cda26 app/controllers
| app/controllers/sys_controller.rb | ||
|---|---|---|
| 21 | 21 |
def projects |
| 22 | 22 |
p = Project.active.has_module(:repository).find(:all, :include => :repository, :order => 'identifier') |
| 23 | 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 | 25 |
end |
| 26 | 26 |
|
| 27 | 27 |
def create_project_repository |
Also available in: Unified diff