view extra/sample_plugin/app/models/.svn/text-base/meeting.rb.svn-base @ 231:5d6e2819f3dd cannam-pre-20110113-merge

Merge from branch "feature_20". This initial implementation of #20 has been tested, but needs to be tested again in the proper context.
author Chris Cannam
date Thu, 17 Feb 2011 18:35:11 +0000
parents 513646585e45
children
line wrap: on
line source
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