add ntu_ga survey init sorting

This commit is contained in:
Spen 2013-10-18 16:13:42 +08:00 committed by saurabhbhatia
parent 14fea3638f
commit 9076d5496a
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ module Faq
widgets do widgets do
default_widget do default_widget do
sorting 'desc(:postdate)'
enable ["typeA"] enable ["typeA"]
query 'Survey.any_of( {:postdate.lte => Time.now} )' query 'Survey.any_of( {:postdate.lte => Time.now} )'
link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self} link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}