From ccff6c27b094045f0388a09edfc1c8645ece84ae Mon Sep 17 00:00:00 2001 From: whimlex Date: Sat, 11 Apr 2015 14:14:47 +0800 Subject: [PATCH] =?UTF-8?q?#2170=E9=A1=B9=E7=9B=AE--=E6=96=B0=E9=97=BB?= =?UTF-8?q?=EF=BC=9A=E8=AF=84=E8=AE=BA=E6=96=B0=E9=97=BB=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=BC=82=E5=B8=B8undefined=20method=20`split'=20for=20nil:NilC?= =?UTF-8?q?lass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index bdb642d3c..1f6655bc4 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -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