small fix

This commit is contained in:
Harry Bomrah 2016-04-13 16:14:29 +08:00
parent d0d96f7168
commit 3b9a9bb527
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Patent
before_validation :add_http
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publish_date => "desc", :application_date => "desc") }
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :application_date => "desc", :publish_date => "desc") }
def get_plugin_data(fields_to_show)
plugin_datas = []