Rails 3.1 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9073 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
858e317e6e
commit
64d843a4d7
3 files changed
+14
-9
No files matched your search
@@ -83,6 +83,9 @@ class AttachmentsController < ApplicationController
|
||||
end
|
||||
|
||||
def destroy
|
||||
if @attachment.container.respond_to?(:init_journal)
|
||||
@attachment.container.init_journal(User.current)
|
||||
end
|
||||
# Make sure association callbacks are called
|
||||
@attachment.container.attachments.delete(@attachment)
|
||||
redirect_to :back
|
||||
|
||||
Reference in new issue
Block a user