now default options can be chosen by developer at init

This commit is contained in:
Fu Matthew authored and Matt K. Fu committed 2013-04-17 11:07:45 +08:00
1 parent 50449b55e8
commit 9815950083
4 files changed
+58 -48

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ module Announcement
widgets do
default_widget do
query 'Bulletin.any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )'
enable ["typeA","typeC"]
image :image
field :postdate
link_field :title,{:method => 'panel_announcement_front_end_bulletin_path',:args=>:self}