diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 16:51:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-06 16:51:10 +0000 |
commit | 18270ee5879b387a23f659339555269319eb861f (patch) | |
tree | 56cc3a7099d12734d54ef538e0c3a1f2698c2163 /app/controllers/attachments_controller.rb | |
parent | eabbab6e2b543c9ffe574c93d0df19e625802315 (diff) | |
download | redmine-18270ee5879b387a23f659339555269319eb861f.tar.gz redmine-18270ee5879b387a23f659339555269319eb861f.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9363 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-rw-r--r-- | app/controllers/attachments_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 967032d92..425bfab94 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -88,9 +88,7 @@ class AttachmentsController < ApplicationController end # Make sure association callbacks are called @attachment.container.attachments.delete(@attachment) - redirect_to :back - rescue ::ActionController::RedirectBackError - redirect_to :controller => 'projects', :action => 'show', :id => @project + redirect_back_or_default project_path(@project) end private |