fix:项目提交留言出错

This commit is contained in:
wanglinchun 2013-12-20 22:04:13 +08:00
parent e1e2e6e986
commit e16fea9387
1 changed files with 4 additions and 0 deletions

View File

@ -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.