Add Approval

This commit is contained in:
spen committed 2014-03-20 15:02:05 +08:00
1 parent 5bab384195
commit 6ae35f3b94
6 files changed
+141 -36

No files matched your search

+2 -2
View File
@@ -28,13 +28,13 @@ module Announcement
data_count 1..10
authorizable
# approvable
approvable
categorizable
taggable
widgets do
default_widget do
query 'Bulletin'
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