#2170项目--新闻:评论新闻返回异常undefined method `split' for nil:NilClass

This commit is contained in:
whimlex 2015-04-11 14:14:47 +08:00
parent f79132e9be
commit ccff6c27b0
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Comment < ActiveRecord::Base
def send_mail
if self.commented.is_a?(News) && Setting.notified_events.include?('news_comment_added')
Mailer.run.news_comment_added(self)
Mailer.news_comment_added(self)
end
end
after_destroy :delete_kindeditor_assets