From 4f6cd0800a3b3cd739f0e913244f4ace960ac558 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 10 Dec 2013 20:08:43 +0800 Subject: [PATCH] welcome helper fetch new memos --- app/helpers/welcome_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb index 83e036f6f..83d6c4e17 100644 --- a/app/helpers/welcome_helper.rb +++ b/app/helpers/welcome_helper.rb @@ -104,9 +104,10 @@ module WelcomeHelper # or searchStudent(project).count end - #To do - def find_new_forum_topics - + def find_new_forum_topics limit=9 + activity = Redmine::Activity::Fetcher.new(nil) + activity.scope=['memos'] + activity.events_welcome(nil, nil, {:limit => limit}) end private