mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 23:06:05 +01:00
Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
13 lines
476 B
Ruby
13 lines
476 B
Ruby
class Meeting < ApplicationRecord
|
|
belongs_to :project
|
|
|
|
acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"},
|
|
:datetime => :scheduled_on,
|
|
:author => nil,
|
|
:url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
|
|
|
|
acts_as_activity_provider :timestamp => 'scheduled_on',
|
|
:scope => proc { joins(:project) },
|
|
:permission => nil
|
|
end
|