Skip to content
Browse files

Mod: 邮件标题“者也”加上括号

  • Loading branch information...
1 parent d331720 commit f16134e8e2b9b7c90b29fb6f1efd30cfcd0794c0 @huacnlee committed Apr 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/mailers/user_mailer.rb
View
4 app/mailers/user_mailer.rb
@@ -2,7 +2,7 @@
class UserMailer < BaseMailer
def welcome(user_id)
@user = User.find(user_id)
- @title = "欢迎加入#{Setting.app_name}"
+ @title = "欢迎加入[#{Setting.app_name}]"
mail(:to => @user.email,:subject => @title, :from => Setting.email_sender)
end
@@ -12,7 +12,7 @@ def be_followed(user_id, follower_id)
# 跳过,如果用户不允许发邮件
return if @user.mail_be_followed == false
@follower = User.find(follower_id)
- @title = "#{@follower.name}#{Setting.app_name}关注了你"
+ @title = "#{@follower.name}[#{Setting.app_name}]关注了你"
mail(:to => @user.email,
:subject => @title, :from => Setting.email_sender)
end

0 comments on commit f16134e

Please sign in to comment.
Something went wrong with that request. Please try again.