make default widget works without init

This commit is contained in:
Fu Matthew committed 2013-01-03 19:38:14 +08:00
1 parent 1856d2395d
commit a70110f787
7 files changed
+115 -1

No files matched your search

+6
View File
@@ -30,6 +30,12 @@ class ModuleApp
before_save :set_key
#>>>>>>>>>>>>> remove after app config applied
def get_default_widget
{:query=>'Bulletin.all',:image=>nil}
end
#<<<<<<<<<<<<
def is_manager?(user)
managing_users.include?(user)
end