mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-21 16:01:14 +00:00
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20148 e93f8b46-1217-0410-a6f0-8f06a7374b81
13 lines
480 B
Ruby
13 lines
480 B
Ruby
class Meeting < ActiveRecord::Base
|
|
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 { includes(:project) },
|
|
:permission => nil
|
|
end
|