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/admin_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/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 6e961dad9..e8cccca85 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -63,7 +63,7 @@ class AdminController < ApplicationController # Force ActionMailer to raise delivery errors so we can catch it ActionMailer::Base.raise_delivery_errors = true begin - @test = Mailer.deliver_test_email(User.current) + @test = Mailer.test_email(User.current).deliver flash[:notice] = l(:notice_email_sent, User.current.mail) rescue Exception => e flash[:error] = l(:notice_email_error, e.message) |