Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9363 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
eabbab6e2b
commit
18270ee587
4 files changed
+17
-12
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user