comparison extra/sample_plugin/app/models/.svn/text-base/meeting.rb.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 class Meeting < ActiveRecord::Base
2 belongs_to :project
3
4 acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"},
5 :datetime => :scheduled_on,
6 :author => nil,
7 :url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
8
9 acts_as_activity_provider :timestamp => 'scheduled_on',
10 :find_options => { :include => :project }
11 end