diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-25 12:19:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-25 12:19:56 +0000 |
commit | 56a5f598f18d305c4ff88e5ce44fccc8096c58d0 (patch) | |
tree | 36fb17ee0aae4b2049b6974e2f01404f78e34f4f | |
parent | 231683e8d728d68532f62b2c70169d828eef9300 (diff) | |
download | redmine-56a5f598f18d305c4ff88e5ce44fccc8096c58d0.tar.gz redmine-56a5f598f18d305c4ff88e5ce44fccc8096c58d0.zip |
Preserve xml output with Rails 3.1.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8998 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/sys_controller.rb | 2 |
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 |