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

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(options = {})
  option = event_options[:url]
  (option.is_a?(Proc) ? option.call(self) : send(option)).merge(options)
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