Module: Redmine::Acts::Event::InstanceMethods
- Defined in:
- vendor/plugins/acts_as_event/lib/acts_as_event.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary
Instance Method Summary
- - (Object) event_date
- - (Object) event_url(options = {})
-
- (Object) recipients
Returns the mail adresses of users that should be notified.
Class Method Details
+ (Object) included(base)
42 43 44 |
# File 'vendor/plugins/acts_as_event/lib/acts_as_event.rb', line 42 def self.included(base) base.extend ClassMethods end |
Instance Method Details
- (Object) event_date
63 64 65 |
# File 'vendor/plugins/acts_as_event/lib/acts_as_event.rb', line 63 def event_date event_datetime.to_date end |
- (Object) event_url(options = {})
67 68 69 70 |
# File 'vendor/plugins/acts_as_event/lib/acts_as_event.rb', line 67 def event_url( = {}) option = [:url] (option.is_a?(Proc) ? option.call(self) : send(option)).merge() end |
- (Object) recipients
Returns the mail adresses of users that should be notified
73 74 75 76 77 |
# File 'vendor/plugins/acts_as_event/lib/acts_as_event.rb', line 73 def recipients notified = project.notified_users notified.reject! {|user| !visible?(user)} notified.collect(&:mail) end |