added publication date

This commit is contained in:
Harry Bomrah 2016-04-11 17:53:23 +08:00
parent 46c45a0f8c
commit 85722dbdde
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class Book
before_validation :add_http
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publish_date => "desc") }
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publish_date => "desc", :publication_date => "desc") }
def create_link
title = []