diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-05 16:47:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-05 16:47:34 +0000 |
commit | 42f9dc7d2c5ac27b538ad5f33fcb132437ed5975 (patch) | |
tree | e69bf7daf18819f26779cd267c300a7e669eee65 /config | |
parent | 852cb183b184f65e352f2619250782f6de7dbfd9 (diff) | |
download | redmine-42f9dc7d2c5ac27b538ad5f33fcb132437ed5975.tar.gz redmine-42f9dc7d2c5ac27b538ad5f33fcb132437ed5975.zip |
Makes relations resource shallow (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6184 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index df1b62086..dfac70dc5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -110,7 +110,7 @@ ActionController::Routing::Routes.draw do |map| map.resources :issues, :member => { :edit => :post }, :collection => {} do |issues| issues.resources :time_entries, :controller => 'timelog' - issues.resources :relations, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy] + issues.resources :relations, :shallow => true, :controller => 'issue_relations', :only => [:index, :show, :create, :destroy] end map.resources :issues, :path_prefix => '/projects/:project_id', :collection => { :create => :post } do |issues| |