@@ -1,11 +1,12 | |||||
1 | class Meeting < ActiveRecord::Base |
|
1 | class Meeting < ActiveRecord::Base | |
2 | belongs_to :project |
|
2 | belongs_to :project | |
3 |
|
3 | |||
4 | acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"}, |
|
4 | acts_as_event :title => Proc.new {|o| "#{o.scheduled_on} Meeting"}, | |
5 | :datetime => :scheduled_on, |
|
5 | :datetime => :scheduled_on, | |
6 | :author => nil, |
|
6 | :author => nil, | |
7 | :url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}} |
|
7 | :url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}} | |
8 |
|
8 | |||
9 | acts_as_activity_provider :timestamp => 'scheduled_on', |
|
9 | acts_as_activity_provider :timestamp => 'scheduled_on', | |
10 | :scope => includes(:project) |
|
10 | :scope => includes(:project), | |
|
11 | :permission => nil | |||
11 | end |
|
12 | end |
General Comments 0
You need to be logged in to leave comments.
Login now