From 77c1cdaa2faebc0c56152738bfffbbdda8cec909 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 8 Apr 2020 21:16:22 +0800 Subject: [PATCH] fix for blank --- app/controllers/admin/feeds_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/feeds_controller.rb b/app/controllers/admin/feeds_controller.rb index 4c80186..669aef5 100644 --- a/app/controllers/admin/feeds_controller.rb +++ b/app/controllers/admin/feeds_controller.rb @@ -61,7 +61,7 @@ class Admin::FeedsController < OrbitAdminController render :text => 'success' end def announcements - @all_feed_annc = SiteFeedAnnc.all.order(created_at: 1).to_a + @all_feed_annc = SiteFeedAnnc.all.order(created_at: 1).to_a rescue [] end def get_category_list app_key = params[:channel]