Mercurial > hg > soundsoftware-site
comparison app/controllers/sys_controller.rb @ 1026:b42553f6df71 bibplugin_bibtex
Merge
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 13 Nov 2012 13:23:29 +0000 |
parents | bb4f99a30aee |
children | bb32da3bea34 |
comparison
equal
deleted
inserted
replaced
953:b52621512b47 | 1026:b42553f6df71 |
---|---|
19 before_filter :check_enabled | 19 before_filter :check_enabled |
20 | 20 |
21 def projects | 21 def projects |
22 p = Project.active.has_module(:repository).find(:all, :include => :repository, :order => 'identifier') | 22 p = Project.active.has_module(:repository).find(:all, :include => :repository, :order => 'identifier') |
23 # extra_info attribute from repository breaks activeresource client | 23 # extra_info attribute from repository breaks activeresource client |
24 render :xml => p.to_xml(:only => [:id, :identifier, :name, :is_public, :status], :include => {:repository => {:only => [:id, :url]}}) | 24 render :xml => p.to_xml(:only => [:id, :identifier, :name, :is_public, :status], :include => {:repository => {:only => [:id, :url, :is_external, :external_url]}}) |
25 end | 25 end |
26 | 26 |
27 def create_project_repository | 27 def create_project_repository |
28 project = Project.find(params[:id]) | 28 project = Project.find(params[:id]) |
29 if project.repository | 29 if project.repository |