for some reason can_display has been remove from announcement init. add it back.

This commit is contained in:
Matthew K. Fu JuYuan 2013-09-23 16:29:22 +08:00
parent 141b708392
commit 6d4d3ccfd4
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ module Announcement
widgets do
default_widget do
sorting 'desc(:postdate)'
query 'Bulletin.available_for_lang(I18n.locale).any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )'
query 'Bulletin.can_display.available_for_lang(I18n.locale).any_of( {deadline: nil,:postdate.lte => Time.now} , {:deadline.gte => Time.now,:postdate.lte => Time.now} )'
enable ["typeA","typeB_style3","typeC"]
image :image
field :postdate