diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-05-05 13:07:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-05-05 13:07:12 +0000 |
commit | 7af8d7caf06416a1d9b94f061a6d0b28fc6bc2d9 (patch) | |
tree | 740ef4bf2bd455d4730e086dc8908515e1b0ad96 /app/controllers/files_controller.rb | |
parent | e876d1bfc014a51ce5e1178bc57529c37c517c45 (diff) | |
download | redmine-7af8d7caf06416a1d9b94f061a6d0b28fc6bc2d9.tar.gz redmine-7af8d7caf06416a1d9b94f061a6d0b28fc6bc2d9.zip |
replace Mailer deliver syntax to Rails3 style
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9638 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/files_controller.rb')
-rw-r--r-- | app/controllers/files_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb index d21aa5e14..f96cd4a9f 100644 --- a/app/controllers/files_controller.rb +++ b/app/controllers/files_controller.rb @@ -46,7 +46,7 @@ class FilesController < ApplicationController render_attachment_warning_if_needed(container) if !attachments.empty? && !attachments[:files].blank? && Setting.notified_events.include?('file_added') - Mailer.deliver_attachments_added(attachments[:files]) + Mailer.attachments_added(attachments[:files]).deliver end redirect_to project_files_path(@project) end |