2008-07-27 23:10:56 +04:00
|
|
|
class Meeting < ActiveRecord::Base
|
|
|
|
belongs_to :project
|
2008-07-27 23:18:35 +04:00
|
|
|
|
|
|
|
acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"},
|
|
|
|
:datetime => :scheduled_on,
|
|
|
|
:author => nil,
|
2012-04-01 16:41:25 +04:00
|
|
|
:url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
|
|
|
|
|
2008-07-27 23:10:56 +04:00
|
|
|
acts_as_activity_provider :timestamp => 'scheduled_on',
|
|
|
|
:find_options => { :include => :project }
|
|
|
|
end
|