From 0e30724d660146d133318d9b3288a8a1eba4d8c4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 8 Dec 2012 08:24:01 +0000 Subject: Group events in the activity view (#12542). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10951 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/plugins/acts_as_event/lib/acts_as_event.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/plugins') diff --git a/lib/plugins/acts_as_event/lib/acts_as_event.rb b/lib/plugins/acts_as_event/lib/acts_as_event.rb index b4d86a9b8..76b7fb82b 100644 --- a/lib/plugins/acts_as_event/lib/acts_as_event.rb +++ b/lib/plugins/acts_as_event/lib/acts_as_event.rb @@ -63,6 +63,11 @@ module Redmine event_datetime.to_date end + def event_group + group = event_options[:group] ? send(event_options[:group]) : self + group || self + end + def event_url(options = {}) option = event_options[:url] if option.is_a?(Proc) -- cgit v1.2.3