From e16fea9387677ba622ad86c9f552a69e51801244 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Fri, 20 Dec 2013 22:04:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=A1=B9=E7=9B=AE=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E7=95=99=E8=A8=80=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/mailer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 5f71ce456..1d7ea24bb 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -31,11 +31,15 @@ class Mailer < ActionMailer::Base # def journals_for_message_add(user, journals_for_message) @user = User.current + if journals_for_message.jour_type!="Project" + @mail = journals_for_message.jour + @message = journals_for_message.notes @url = url_for(:controller => 'users', :action => 'user_newfeedback', :id => @mail) mail :to => @mail.mail, :subject => "You have a new message" + end end # Builds a Mail::Message object used to email recipients of the added issue.