summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-02 23:26:54 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-02 23:26:54 +0000
commit7574ab730d90b4652bcace0e5fe3e496c77ad8d2 (patch)
tree609cc0755b8a3df5712018f0e7a52a681b5ac907 /app
parent46ab7b45d7e7f6fb5d15773bb40615786e6de332 (diff)
downloadredmine-7574ab730d90b4652bcace0e5fe3e496c77ad8d2.tar.gz
redmine-7574ab730d90b4652bcace0e5fe3e496c77ad8d2.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/controllers/sys_controller.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/controllers/sys_controller.rb b/app/controllers/sys_controller.rb
index 0644fed84..47728b936 100644
--- a/app/controllers/sys_controller.rb
+++ b/app/controllers/sys_controller.rb
@@ -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