diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 19:39:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 19:39:47 +0000 |
commit | 8ab9215ea8df2216ccfacf272804811b05ab82c8 (patch) | |
tree | ac9ab871a1f9fc1a190cd6505ee08e8efacf8863 /app/controllers/project_enumerations_controller.rb | |
parent | 60d06d8c17290f536cf76ffd4a75bdafe540aa9a (diff) | |
download | redmine-8ab9215ea8df2216ccfacf272804811b05ab82c8.tar.gz redmine-8ab9215ea8df2216ccfacf272804811b05ab82c8.zip |
Use named routes in controllers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10983 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/project_enumerations_controller.rb')
-rw-r--r-- | app/controllers/project_enumerations_controller.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/controllers/project_enumerations_controller.rb b/app/controllers/project_enumerations_controller.rb index 2254caaee..11273b8db 100644 --- a/app/controllers/project_enumerations_controller.rb +++ b/app/controllers/project_enumerations_controller.rb @@ -29,7 +29,7 @@ class ProjectEnumerationsController < ApplicationController flash[:notice] = l(:notice_successful_update) end - redirect_to :controller => 'projects', :action => 'settings', :tab => 'activities', :id => @project + redirect_to settings_project_path(@project, :tab => 'activities') end def destroy @@ -37,7 +37,6 @@ class ProjectEnumerationsController < ApplicationController time_entry_activity.destroy(time_entry_activity.parent) end flash[:notice] = l(:notice_successful_update) - redirect_to :controller => 'projects', :action => 'settings', :tab => 'activities', :id => @project + redirect_to settings_project_path(@project, :tab => 'activities') end - end |