welcome helper fetch new memos

This commit is contained in:
yanxd 2013-12-10 20:08:43 +08:00
parent 25baf61185
commit 4f6cd0800a
1 changed files with 4 additions and 3 deletions

View File

@ -104,9 +104,10 @@ module WelcomeHelper
# or # or
searchStudent(project).count searchStudent(project).count
end end
#To do def find_new_forum_topics limit=9
def find_new_forum_topics activity = Redmine::Activity::Fetcher.new(nil)
activity.scope=['memos']
activity.events_welcome(nil, nil, {:limit => limit})
end end
private private