small fix

This commit is contained in:
Harry Bomrah 2017-08-16 14:03:39 +08:00
parent f9ecd7d486
commit 1b5830d910
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class EPapersController < ApplicationController
def widget def widget
tags = OrbitHelper.widget_tags tags = OrbitHelper.widget_tags
papers = Paper.filter_by_widget_categories.filter_by_tags(tags).collect.desc(:period) do |paper| papers = Paper.filter_by_widget_categories.filter_by_tags(tags).desc(:period).collect do |paper|
paper_thumb = !paper.image.nil? && !paper.image.url.nil? ? paper.image.thumb.url : "http://www.placehold.it/400x400/EFEFEF/AAAAAA" paper_thumb = !paper.image.nil? && !paper.image.url.nil? ? paper.image.thumb.url : "http://www.placehold.it/400x400/EFEFEF/AAAAAA"
{ {
"title" => paper.title, "title" => paper.title,