]> source.dussan.org Git - redmine.git/commitdiff
code layout cleanup app/controllers/sys_controller.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 2 Feb 2012 23:26:54 +0000 (23:26 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 2 Feb 2012 23:26:54 +0000 (23:26 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8756 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/sys_controller.rb

index 0644fed846db439fae0f01d9d148ad1ea7fd2bb5..47728b936cd3c352d51abf045b0ef0be16c2169c 100644 (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