diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-08 08:24:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-08 08:24:01 +0000 |
commit | 0e30724d660146d133318d9b3288a8a1eba4d8c4 (patch) | |
tree | 122f24969ad517248d59458e25f37726a342b191 /app/models/message.rb | |
parent | 7222e4012db58c53d364e3b065e70338c094e878 (diff) | |
download | redmine-0e30724d660146d133318d9b3288a8a1eba4d8c4.tar.gz redmine-0e30724d660146d133318d9b3288a8a1eba4d8c4.zip |
Group events in the activity view (#12542).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10951 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r-- | app/models/message.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/message.rb b/app/models/message.rb index f41d48f2f..53b461501 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -29,6 +29,7 @@ class Message < ActiveRecord::Base :date_column => "#{table_name}.created_on" acts_as_event :title => Proc.new {|o| "#{o.board.name}: #{o.subject}"}, :description => :content, + :group => :parent, :type => Proc.new {|o| o.parent_id.nil? ? 'message' : 'reply'}, :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, :r => o.id, :anchor => "message-#{o.id}"})} |