diff options
Diffstat (limited to 'app/controllers/sys_controller.rb')
-rw-r--r-- | app/controllers/sys_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/sys_controller.rb b/app/controllers/sys_controller.rb index 495cbcf64..87b489d3a 100644 --- a/app/controllers/sys_controller.rb +++ b/app/controllers/sys_controller.rb @@ -31,7 +31,7 @@ class SysController < ActionController::Base def create_project_repository project = Project.find(params[:id]) if project.repository - render :nothing => true, :status => 409 + head 409 else logger.info "Repository for #{project.name} was reported to be created by #{request.remote_ip}." repository = Repository.factory(params[:vendor], params[:repository]) @@ -39,7 +39,7 @@ class SysController < ActionController::Base if repository.save render :xml => {repository.class.name.underscore.gsub('/', '-') => {:id => repository.id, :url => repository.url}}, :status => 201 else - render :nothing => true, :status => 422 + head 422 end end end @@ -64,9 +64,9 @@ class SysController < ActionController::Base repository.fetch_changesets end end - render :nothing => true, :status => 200 + head 200 rescue ActiveRecord::RecordNotFound - render :nothing => true, :status => 404 + head 404 end protected |