summaryrefslogtreecommitdiffstats
path: root/app/models/journal.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-08 08:24:01 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-08 08:24:01 +0000
commit0e30724d660146d133318d9b3288a8a1eba4d8c4 (patch)
tree122f24969ad517248d59458e25f37726a342b191 /app/models/journal.rb
parent7222e4012db58c53d364e3b065e70338c094e878 (diff)
downloadredmine-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/journal.rb')
-rw-r--r--app/models/journal.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb
index 560ccf3b8..df52d89b2 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -28,6 +28,7 @@ class Journal < ActiveRecord::Base
acts_as_event :title => Proc.new {|o| status = ((s = o.new_status) ? " (#{s})" : nil); "#{o.issue.tracker} ##{o.issue.id}#{status}: #{o.issue.subject}" },
:description => :notes,
:author => :user,
+ :group => :issue,
:type => Proc.new {|o| (s = o.new_status) ? (s.is_closed? ? 'issue-closed' : 'issue-edit') : 'issue-note' },
:url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.issue.id, :anchor => "change-#{o.id}"}}