This commit is contained in:
yanxd 2013-12-11 16:15:10 +08:00
parent fb64b47ba6
commit f7a6798b73
1 changed files with 4 additions and 3 deletions

View File

@ -105,9 +105,10 @@ module WelcomeHelper
searchStudent(project).count
end
def find_new_forum_topics limit=9
activity = Redmine::Activity::Fetcher.new(nil)
activity.scope=['memos']
activity.events_welcome(nil, nil, {:limit => limit})
Memo.where('memos.parent_id IS NULL').reorder('ORDER BY memos.created_at DESC').limit(limit)
# activity = Redmine::Activity::Fetcher.new(nil)
# activity.scope=['memos']
# activity.events_welcome(nil, nil, {:limit => limit})
end
private