Resourcified attachments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7948 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
b95fd6315c
commit
885605b439
5 files changed
+16
-14
No files matched your search
@@ -53,7 +53,7 @@ class AttachmentsController < ApplicationController
|
||||
|
||||
end
|
||||
|
||||
verify :method => :post, :only => :destroy
|
||||
verify :method => :delete, :only => :destroy
|
||||
def destroy
|
||||
# Make sure association callbacks are called
|
||||
@attachment.container.attachments.delete(@attachment)
|
||||
|
||||
Reference in new issue
Block a user