diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-30 11:18:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-11-30 11:18:22 +0000 |
commit | fce4615f10ad81b9070e65a45f9d37b1c571ccd7 (patch) | |
tree | b922752605cd207cf51e72866f435af8427ea468 /app/models/message.rb | |
parent | b5fcea9e7414647533ee333485ed8c93b9cff82f (diff) | |
download | redmine-fce4615f10ad81b9070e65a45f9d37b1c571ccd7.tar.gz redmine-fce4615f10ad81b9070e65a45f9d37b1c571ccd7.zip |
Display latest user's activity on account/show view.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2066 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r-- | app/models/message.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb index 9a313e822..acb300f46 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -32,7 +32,8 @@ class Message < ActiveRecord::Base :url => Proc.new {|o| {:controller => 'messages', :action => 'show', :board_id => o.board_id}.merge(o.parent_id.nil? ? {:id => o.id} : {:id => o.parent_id, :anchor => "message-#{o.id}"})} - acts_as_activity_provider :find_options => {:include => [{:board => :project}, :author]} + acts_as_activity_provider :find_options => {:include => [{:board => :project}, :author]}, + :author_key => :author_id acts_as_watchable attr_protected :locked, :sticky |