fix:项目提交留言出错
This commit is contained in:
parent
e1e2e6e986
commit
e16fea9387
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue