From d5eb7d992c0bae23850b1caea3da50ae3c3eff38 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Thu, 20 Jun 2013 15:24:23 +0200 Subject: [PATCH] removes superfluous methods They where moved to api project associations controller --- .../project_associations_controller.rb | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/app/controllers/project_associations_controller.rb b/app/controllers/project_associations_controller.rb index 0b2556c72e..7765eb394e 100644 --- a/app/controllers/project_associations_controller.rb +++ b/app/controllers/project_associations_controller.rb @@ -30,21 +30,6 @@ class ProjectAssociationsController < ApplicationController @project_types = [nil] + ProjectType.all @project_associations_by_type = @project.project_associations_by_type end - - format.api do - @project_associations = @project.project_associations.visible - end - end - end - - def available_projects - available_projects = @project.associated_project_candidates - respond_to do |format| - format.html { render_404 } - format.api { - @elements = Project.project_level_list(Project.visible) - @disabled = Project.visible - available_projects - } end end @@ -69,6 +54,8 @@ class ProjectAssociationsController < ApplicationController end end + # TODO: this method should be removed once the controller no longer responds to + # api calls def show @project_association = @project.project_associations.find(params[:id]) check_visibility