From eff064027795ebfc6c0f723fa554fdde71238f7f Mon Sep 17 00:00:00 2001 From: yafeilee Date: Thu, 3 Apr 2014 00:23:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B0=83=E8=AF=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/comment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/comment.rb b/app/models/comment.rb index 0639888..3d8377c 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -15,6 +15,7 @@ class Comment after_create do if ENV['SENDCLOUD_USER'].present? && ENV['ADMIN_USER'].present? && ENV['ADMIN_USER'] =~ /@/ + Rails.logger.info 'comment created, comment worker start' NewCommentWorker.perform_async(self.name, self.content, self.post.title, ENV['ADMIN_USER']) end end