welcome helper fetch new memos
This commit is contained in:
parent
25baf61185
commit
4f6cd0800a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue