Browse Source

code layout cleanup app/controllers/sys_controller.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8756 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.4.0
Toshi MARUYAMA 12 years ago
parent
commit
7574ab730d
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      app/controllers/sys_controller.rb

+ 9
- 2
app/controllers/sys_controller.rb View File

@@ -19,9 +19,16 @@ class SysController < ActionController::Base
before_filter :check_enabled

def projects
p = Project.active.has_module(:repository).find(:all, :include => :repository, :order => "#{Project.table_name}.identifier")
p = Project.active.has_module(:repository).find(
:all,
:include => :repository,
:order => "#{Project.table_name}.identifier"
)
# extra_info attribute from repository breaks activeresource client
render :xml => p.to_xml(:only => [:id, :identifier, :name, :is_public, :status], :include => {:repository => {:only => [:id, :url]}})
render :xml => p.to_xml(
:only => [:id, :identifier, :name, :is_public, :status],
:include => {:repository => {:only => [:id, :url]}}
)
end

def create_project_repository

Loading…
Cancel
Save