Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9364 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-04-06 16:53:12 +00:00
parent 18270ee587
commit 2e240103f3
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class AttachmentsController < ApplicationController
end
# Make sure association callbacks are called
@attachment.container.attachments.delete(@attachment)
redirect_back_or_default project_path(@project)
redirect_to_referer_or project_path(@project)
end
private