summaryrefslogtreecommitdiffstats
path: root/lib/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/acts_as_event/lib/acts_as_event.rb5
1 files changed, 5 insertions, 0 deletions
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)