Revision 1298:4f746d8966dd lib/plugins/acts_as_event
| lib/plugins/acts_as_event/lib/acts_as_event.rb | ||
|---|---|---|
| 1 | 1 |
# Redmine - project management software |
| 2 |
# Copyright (C) 2006-2012 Jean-Philippe Lang
|
|
| 2 |
# Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
| 3 | 3 |
# |
| 4 | 4 |
# This program is free software; you can redistribute it and/or |
| 5 | 5 |
# modify it under the terms of the GNU General Public License |
| ... | ... | |
| 63 | 63 |
event_datetime.to_date |
| 64 | 64 |
end |
| 65 | 65 |
|
| 66 |
def event_group |
|
| 67 |
group = event_options[:group] ? send(event_options[:group]) : self |
|
| 68 |
group || self |
|
| 69 |
end |
|
| 70 |
|
|
| 66 | 71 |
def event_url(options = {})
|
| 67 | 72 |
option = event_options[:url] |
| 68 | 73 |
if option.is_a?(Proc) |
Also available in: Unified diff