Merge pull request #591 from opf/fix/remove_unused_planning_element_routes

Remove unused planning elements routes
pull/1219/head
ulferts 11 years ago
commit 59149d61d4
  1. 14
      config/routes.rb
  2. 2
      spec/controllers/api/v2/planning_elements_controller_spec.rb

@ -447,20 +447,6 @@ OpenProject::Application.routes.draw do
end end
resources :projects, :only => [:index, :show], :controller => 'projects' do resources :projects, :only => [:index, :show], :controller => 'projects' do
resources :planning_elements, :controller => 'planning_elements' do
collection do
get :all
delete :destroy_all
get :confirm_destroy_all
end
member do
get :confirm_destroy
end
resources :journals, :controller => 'planning_element_journals',
:only => [:index, :create]
end
resources :project_associations, :controller => 'project_associations' do resources :project_associations, :controller => 'project_associations' do
get :confirm_destroy, :on => :member get :confirm_destroy, :on => :member
get :available_projects, :on => :collection get :available_projects, :on => :collection

@ -384,7 +384,7 @@ describe Api::V2::PlanningElementsController do
end end
def expect_redirect_to def expect_redirect_to
Regexp.new(project_planning_elements_path(project)) Regexp.new(api_v2_project_planning_elements_path(project))
end end
let(:permission) { :edit_work_packages } let(:permission) { :edit_work_packages }

Loading…
Cancel
Save