welcome activity, eventtypes: Forum=>Memo, Memo=>Reply.

This commit is contained in:
yanxd 2013-12-05 08:52:41 +08:00
parent 096f0eed03
commit 31a4ecc8e8
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Memo < ActiveRecord::Base
:datetime => :created_at,
:description => :content,
:author => :author,
:type => Proc.new {|o| o.parent_id.nil? ? 'Forum' : 'Memo'},
:type => Proc.new {|o| o.parent_id.nil? ? 'Memo' : 'Reply'},
:url => Proc.new {|o| {:controller => 'memos', :action => 'show', :forum_id => o.forum_id}.merge(o.parent_id.nil? ? {:id => o.id} : {:id => o.parent_id, :anchor => "reply-#{o.id}"})}
acts_as_activity_provider :author_key => :author_id,
:func => 'memos',