From c8a8ec1b49c9d965961645cdf7a205a56e5bb159 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 12 Jan 2016 18:13:55 +0800 Subject: [PATCH] fix for title non empty --- app/controllers/admin/vlogs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/vlogs_controller.rb b/app/controllers/admin/vlogs_controller.rb index c57ed90..8271d87 100644 --- a/app/controllers/admin/vlogs_controller.rb +++ b/app/controllers/admin/vlogs_controller.rb @@ -7,7 +7,7 @@ class Admin::VlogsController < OrbitAdminController @filter_fields.delete(:status) @table_fields = ["vlog.thumbnail", :category, :title, "vlog.uploaded_by"] - @vlogs = VLog.where(:title.ne => "") + @vlogs = VLog.all .order_by(sort) .with_categories(filters("category")) .with_tags(filters("tag"))