@@ -1,5 +1,10 | |||||
1 | class Meeting < ActiveRecord::Base |
|
1 | class Meeting < ActiveRecord::Base | |
2 | belongs_to :project |
|
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}} | |||
3 |
|
8 | |||
4 | acts_as_activity_provider :timestamp => 'scheduled_on', |
|
9 | acts_as_activity_provider :timestamp => 'scheduled_on', | |
5 | :find_options => { :include => :project } |
|
10 | :find_options => { :include => :project } |
General Comments 0
You need to be logged in to leave comments.
Login now