summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-02-25 17:01:05 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-02-25 17:01:05 +0000
commitc68d853bf4cfd9bf60df3166317b0dcea0702461 (patch)
tree41aa3ac6841ace7e3c5ed6635a88c9fa7368c85f /config
parent19d4ddf2f2158c5210a0b10cdd9934cbf93885c2 (diff)
downloadredmine-c68d853bf4cfd9bf60df3166317b0dcea0702461.tar.gz
redmine-c68d853bf4cfd9bf60df3166317b0dcea0702461.zip
Refactor: Move the updating of an Issue to the #update method.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3486 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 54a5ddf17..e3707b644 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -126,7 +126,8 @@ ActionController::Routing::Routes.draw do |map|
issues_actions.connect 'issues.:format', :action => 'new', :format => /xml/
end
issues_routes.with_options :conditions => {:method => :put} do |issues_actions|
- issues_actions.connect 'issues/:id.:format', :action => 'edit', :id => /\d+/, :format => /xml/
+ issues_actions.connect 'issues/:id/edit', :action => 'update', :id => /\d+/
+ issues_actions.connect 'issues/:id.:format', :action => 'update', :id => /\d+/, :format => /xml/
end
issues_routes.with_options :conditions => {:method => :delete} do |issues_actions|
issues_actions.connect 'issues/:id.:format', :action => 'destroy', :id => /\d+/, :format => /xml/