添加一些对代码理解的注释

This commit is contained in:
lizanle 2015-02-02 09:53:14 +08:00
parent 725b2749e2
commit 8f5e613477
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ class Issue < ActiveRecord::Base
},
:url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o}},
:type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
# Time 2015-01-31 13:52:53
# Author lizanle
# Description 将hash传进去
acts_as_activity_provider :find_options => {:include => [:project, :author, :tracker]},
:author_key => :author_id