From 9076d5496aea852a8d1c053762eb53d76ce9d317 Mon Sep 17 00:00:00 2001 From: Spen Date: Fri, 18 Oct 2013 16:13:42 +0800 Subject: [PATCH] add ntu_ga survey init sorting --- vendor/built_in_modules/survey/init.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/built_in_modules/survey/init.rb b/vendor/built_in_modules/survey/init.rb index c4864de7..115bd841 100644 --- a/vendor/built_in_modules/survey/init.rb +++ b/vendor/built_in_modules/survey/init.rb @@ -20,6 +20,7 @@ module Faq widgets do default_widget do + sorting 'desc(:postdate)' enable ["typeA"] query 'Survey.any_of( {:postdate.lte => Time.now} )' link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}