summaryrefslogtreecommitdiffstats
path: root/extra/sample_plugin/app/models/meeting.rb
blob: c1bb64a93cda2ef6c372e1697da0b297254b156a (plain)
1
2
3
4
5
6
7
8
9
10
11
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',
                            :find_options => { :include => :project }
end