@@ -19,9 +19,16 class SysController < ActionController::Base | |||||
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 => "#{Project.table_name}.identifier") |
|
22 | p = Project.active.has_module(:repository).find( | |
|
23 | :all, | |||
|
24 | :include => :repository, | |||
|
25 | :order => "#{Project.table_name}.identifier" | |||
|
26 | ) | |||
23 | # extra_info attribute from repository breaks activeresource client |
|
27 | # 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]}}) |
|
28 | render :xml => p.to_xml( | |
|
29 | :only => [:id, :identifier, :name, :is_public, :status], | |||
|
30 | :include => {:repository => {:only => [:id, :url]}} | |||
|
31 | ) | |||
25 | end |
|
32 | end | |
26 |
|
33 | |||
27 | def create_project_repository |
|
34 | def create_project_repository |
General Comments 0
You need to be logged in to leave comments.
Login now