summaryrefslogtreecommitdiffstats
path: root/app/controllers/sys_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/sys_controller.rb')
-rw-r--r--app/controllers/sys_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sys_controller.rb b/app/controllers/sys_controller.rb
index 47728b936..ed29c34d4 100644
--- a/app/controllers/sys_controller.rb
+++ b/app/controllers/sys_controller.rb
@@ -39,7 +39,7 @@ class SysController < ActionController::Base
logger.info "Repository for #{project.name} was reported to be created by #{request.remote_ip}."
project.repository = Repository.factory(params[:vendor], params[:repository])
if project.repository && project.repository.save
- render :xml => project.repository.to_xml(:only => [:id, :url]), :status => 201
+ render :xml => {project.repository.class.name.underscore.gsub('/', '-') => {:id => project.repository.id, :url => project.repository.url}}, :status => 201
else
render :nothing => true, :status => 422
end