#2170项目--新闻:评论新闻返回异常undefined method `split' for nil:NilClass
This commit is contained in:
parent
f79132e9be
commit
ccff6c27b0
|
@ -27,7 +27,7 @@ class Comment < ActiveRecord::Base
|
||||||
|
|
||||||
def send_mail
|
def send_mail
|
||||||
if self.commented.is_a?(News) && Setting.notified_events.include?('news_comment_added')
|
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
|
||||||
end
|
end
|
||||||
after_destroy :delete_kindeditor_assets
|
after_destroy :delete_kindeditor_assets
|
||||||
|
|
Loading…
Reference in New Issue