1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 15:31:12 +00:00

fix source indent of SysController

git-svn-id: http://svn.redmine.org/redmine/trunk@20086 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-09-26 15:02:26 +00:00
parent 70e470fd9b
commit 282a19529d

View File

@ -24,10 +24,9 @@ class SysController < ActionController::Base
p = Project.active.has_module(:repository). p = Project.active.has_module(:repository).
order("#{Project.table_name}.identifier").preload(:repository).to_a order("#{Project.table_name}.identifier").preload(:repository).to_a
# extra_info attribute from repository breaks activeresource client # extra_info attribute from repository breaks activeresource client
render :json => p.to_json( render :json =>
:only => [:id, :identifier, :name, :is_public, :status], p.to_json(:only => [:id, :identifier, :name, :is_public, :status],
:include => {:repository => {:only => [:id, :url]}} :include => {:repository => {:only => [:id, :url]}})
)
end end
def create_project_repository def create_project_repository