Preserve xml output with Rails 3.1.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8998 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
231683e8d7
commit
56a5f598f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue