From d34ed4b744838da0f1f17ad76d0738c199f64c9f Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Sun, 18 Dec 2016 18:25:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E5=88=86=E4=B8=80=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E8=A7=A3=E5=86=B3delayed=5Fjob=E5=8D=A1=E6=AD=BB=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/news.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/news.rb b/app/models/news.rb index d57565dd3..c436724fd 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -222,6 +222,10 @@ class News < ActiveRecord::Base end end + unless vs.empty? + self.delay.contain_news_message(vs) + end + end end