route: code layout clean up timelog route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8516 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-05 08:03:53 +00:00
parent 05e897896a
commit e97db2589d
1 changed files with 5 additions and 2 deletions

View File

@ -162,7 +162,8 @@ ActionController::Routing::Routes.draw do |map|
project.issue_form 'issues/new', :controller => 'issues',
:action => 'new', :conditions => {:method => :post}
project.resources :issues, :only => [:index, :new, :create] do |issues|
issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
issues.resources :time_entries, :controller => 'timelog',
:collection => {:report => :get}
end
project.resources :files, :only => [:index, :new, :create]
@ -170,7 +171,9 @@ ActionController::Routing::Routes.draw do |map|
:collection => {:close_completed => :put},
:member => {:status_by => :post}
project.resources :news, :shallow => true
project.resources :time_entries, :controller => 'timelog', :path_prefix => 'projects/:project_id', :collection => {:report => :get}
project.resources :time_entries, :controller => 'timelog',
:path_prefix => 'projects/:project_id',
:collection => {:report => :get}
project.resources :queries, :only => [:new, :create]
project.resources :issue_categories, :shallow => true
project.resources :documents, :shallow => true, :member => {:add_attachment => :post}